diff --git a/frontend/app/components/Assist/Assist.tsx b/frontend/app/components/Assist/Assist.tsx index aa5dfa110..213de3f8f 100644 --- a/frontend/app/components/Assist/Assist.tsx +++ b/frontend/app/components/Assist/Assist.tsx @@ -25,5 +25,5 @@ const Cont = connect((state: any) => ({ }))(Assist); export default withPageTitle('Assist - OpenReplay')( - withPermissions(['ASSIST_LIVE'])(withRouter(Cont)) + withPermissions(['ASSIST_LIVE', 'SERVICE_ASSIST_LIVE'])(withRouter(Cont)) ); diff --git a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx index ad8354a93..a80a9f5e1 100644 --- a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx +++ b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx @@ -292,7 +292,7 @@ function AssistActions({ const con = connect((state: any) => { const permissions = state.getIn(['user', 'account', 'permissions']) || []; return { - hasPermission: permissions.includes('ASSIST_CALL'), + hasPermission: permissions.includes('ASSIST_CALL') || permissions.includes('SERVICE_ASSIST_CALL'), isEnterprise: state.getIn(['user', 'account', 'edition']) === 'ee', userDisplayName: state.getIn(['sessions', 'current']).userDisplayName, agentId: state.getIn(['user', 'account', 'id']) diff --git a/frontend/app/components/Session/Player/MobilePlayer/MobileControls.tsx b/frontend/app/components/Session/Player/MobilePlayer/MobileControls.tsx index 6fab5b58c..8080d044a 100644 --- a/frontend/app/components/Session/Player/MobilePlayer/MobileControls.tsx +++ b/frontend/app/components/Session/Player/MobilePlayer/MobileControls.tsx @@ -286,7 +286,7 @@ export default connect( const permissions = state.getIn(['user', 'account', 'permissions']) || []; const isEnterprise = state.getIn(['user', 'account', 'edition']) === 'ee'; return { - disableDevtools: isEnterprise && !permissions.includes('DEV_TOOLS'), + disableDevtools: isEnterprise && !(permissions.includes('DEV_TOOLS') || permissions.includes('SERVICE_DEV_TOOLS')), fullscreen: state.getIn(['components', 'player', 'fullscreen']), bottomBlock: state.getIn(['components', 'player', 'bottomBlock']), showStorageRedux: !state.getIn([ diff --git a/frontend/app/components/Session/Session.tsx b/frontend/app/components/Session/Session.tsx index ee115db04..72e048b3f 100644 --- a/frontend/app/components/Session/Session.tsx +++ b/frontend/app/components/Session/Session.tsx @@ -72,7 +72,7 @@ function Session({ } export default withPermissions( - ['SESSION_REPLAY'], + ['SESSION_REPLAY', 'SERVICE_SESSION_REPLAY'], '', true )( diff --git a/frontend/app/components/Session_/Player/Controls/Controls.tsx b/frontend/app/components/Session_/Player/Controls/Controls.tsx index dbb3682a0..dec072fd9 100644 --- a/frontend/app/components/Session_/Player/Controls/Controls.tsx +++ b/frontend/app/components/Session_/Player/Controls/Controls.tsx @@ -432,7 +432,7 @@ export default connect( const permissions = state.getIn(['user', 'account', 'permissions']) || []; const isEnterprise = state.getIn(['user', 'account', 'edition']) === 'ee'; return { - disableDevtools: isEnterprise && !permissions.includes('DEV_TOOLS'), + disableDevtools: isEnterprise && !(permissions.includes('DEV_TOOLS') || permissions.includes('SERVICE_DEV_TOOLS')), fullscreen: state.getIn(['components', 'player', 'fullscreen']), bottomBlock: state.getIn(['components', 'player', 'bottomBlock']), showStorageRedux: !state.getIn([ diff --git a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx index a9209063c..a277e04e3 100644 --- a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx +++ b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx @@ -186,7 +186,7 @@ function LiveSessionList(props: Props) { ); } -export default withPermissions(['ASSIST_LIVE'])( +export default withPermissions(['ASSIST_LIVE', 'SERVICE_ASSIST_LIVE'])( connect( (state: any) => ({ list: state.getIn(['liveSearch', 'list']),