From 963ec12e7e87ea20c11a2f2d5e8c35ef638eb55d Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Wed, 23 Feb 2022 16:35:49 +0100 Subject: [PATCH] fix(ui) - permission check separate --- frontend/app/components/Session/LivePlayer.js | 2 +- .../app/components/shared/LiveSessionList/LiveSessionList.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/Session/LivePlayer.js b/frontend/app/components/Session/LivePlayer.js index 967807556..ef4bda5ae 100644 --- a/frontend/app/components/Session/LivePlayer.js +++ b/frontend/app/components/Session/LivePlayer.js @@ -58,7 +58,7 @@ export default withRequest({ dataWrapper: data => data, dataName: 'assistCredendials', loadingName: 'loadingCredentials', -})(withPermissions(['SESSION_REPLAY', 'ASSIST_LIVE'], '', true)(connect( +})(withPermissions(['ASSIST_LIVE'], '', true)(connect( state => { const isAssist = state.getIn(['sessions', 'activeTab']).type === 'live'; const hasSessioPath = state.getIn([ 'sessions', 'sessionPath' ]).includes('/sessions'); diff --git a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx index d498c53d9..997bc057f 100644 --- a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx +++ b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx @@ -168,7 +168,7 @@ function LiveSessionList(props: Props) { ) } -export default withPermissions(['ASSIST_LIVE', 'SESSION_REPLAY'])(connect( +export default withPermissions(['ASSIST_LIVE'])(connect( (state) => ({ list: state.getIn(['sessions', 'liveSessions']), loading: state.getIn([ 'sessions', 'loading' ]),