fix(ui) - check for role session_replay
This commit is contained in:
parent
8a138c48d2
commit
0e55ea29b7
1 changed files with 3 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ import { fetch as fetchSession } from 'Duck/sessions';
|
|||
import { fetchList as fetchSlackList } from 'Duck/integrations/slack';
|
||||
import { Link, NoContent, Loader } from 'UI';
|
||||
import { sessions as sessionsRoute } from 'App/routes';
|
||||
import withPermissions from 'HOCs/withPermissions'
|
||||
|
||||
import LivePlayer from './LivePlayer';
|
||||
import WebPlayer from './WebPlayer';
|
||||
|
|
@ -56,7 +57,7 @@ function Session({
|
|||
);
|
||||
}
|
||||
|
||||
export default connect((state, props) => {
|
||||
export default withPermissions(['SESSION_REPLAY'])(connect((state, props) => {
|
||||
const { match: { params: { sessionId } } } = props;
|
||||
return {
|
||||
sessionId,
|
||||
|
|
@ -67,4 +68,4 @@ export default connect((state, props) => {
|
|||
}, {
|
||||
fetchSession,
|
||||
fetchSlackList,
|
||||
})(Session);
|
||||
})(Session));
|
||||
Loading…
Add table
Reference in a new issue