From 0e55ea29b753ae1f690a7a3da9e21c5926739f82 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Sun, 5 Dec 2021 00:22:01 +0530 Subject: [PATCH] fix(ui) - check for role session_replay --- frontend/app/components/Session/Session.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/Session/Session.js b/frontend/app/components/Session/Session.js index 36fa66d7f..af1cdb3d3 100644 --- a/frontend/app/components/Session/Session.js +++ b/frontend/app/components/Session/Session.js @@ -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); \ No newline at end of file +})(Session)); \ No newline at end of file