From 9bd5b77c49e16ec734789ff26db4805efa840352 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 8 Jul 2024 17:59:47 +0200 Subject: [PATCH] change(ui): roles to support for service accounts (#2373) --- frontend/app/components/Session/LivePlayer.tsx | 6 +----- frontend/app/components/Session/LiveSession.js | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/frontend/app/components/Session/LivePlayer.tsx b/frontend/app/components/Session/LivePlayer.tsx index 97ceabbb2..516427d11 100644 --- a/frontend/app/components/Session/LivePlayer.tsx +++ b/frontend/app/components/Session/LivePlayer.tsx @@ -137,11 +137,7 @@ function LivePlayer({ ); } -export default withPermissions( - ['ASSIST_LIVE'], - '', - true -)( +export default withPermissions(['ASSIST_LIVE', 'SERVICE_ASSIST_LIVE'], '', true, false)( connect((state: any) => { return { siteId: state.getIn([ 'site', 'siteId' ]), diff --git a/frontend/app/components/Session/LiveSession.js b/frontend/app/components/Session/LiveSession.js index f7cc625d5..a9bba11b9 100644 --- a/frontend/app/components/Session/LiveSession.js +++ b/frontend/app/components/Session/LiveSession.js @@ -56,11 +56,7 @@ function LiveSession({ ); } -export default withPermissions( - ['ASSIST_LIVE'], - '', - true -)( +export default withPermissions(['ASSIST_LIVE', 'SERVICE_ASSIST_LIVE'], '', true, false)( connect( (state, props) => { const {