diff --git a/frontend/app/components/BugFinder/LiveSessionList/LiveSessionList.tsx b/frontend/app/components/BugFinder/LiveSessionList/LiveSessionList.tsx index dfcfeb90e..b58279109 100644 --- a/frontend/app/components/BugFinder/LiveSessionList/LiveSessionList.tsx +++ b/frontend/app/components/BugFinder/LiveSessionList/LiveSessionList.tsx @@ -78,7 +78,7 @@ function LiveSessionList(props: Props) { ) } -export default withPermissions(['ASSIST_LIVE'])(connect( +export default withPermissions(['ASSIST_LIVE', 'SESSION_REPLAY'])(connect( (state) => ({ list: state.getIn(['sessions', 'liveSessions']), loading: state.getIn([ 'sessions', 'loading' ]), diff --git a/frontend/app/components/hocs/withPermissions.js b/frontend/app/components/hocs/withPermissions.js index ee4b90fae..79fbcfe10 100644 --- a/frontend/app/components/hocs/withPermissions.js +++ b/frontend/app/components/hocs/withPermissions.js @@ -8,7 +8,7 @@ export default (requiredPermissions, className, backLink = '') => BaseComponent })) class extends React.PureComponent { render() { - const hasPermission = this.props.permissions.some(permission => requiredPermissions.includes(permission)); + const hasPermission = requiredPermissions.every(permission => this.props.permissions.includes(permission)); return !this.props.isEnterprise || hasPermission ? :
}