From cb2891ead32b3b3cb21ec26e2b59bab8a0cef66a Mon Sep 17 00:00:00 2001 From: "titus.moldovan" Date: Fri, 4 Jun 2021 10:23:17 +0300 Subject: [PATCH] feat(e2ee): shows E2EESection only when user is moderator --- .../security/components/security-dialog/web/SecurityDialog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/react/features/security/components/security-dialog/web/SecurityDialog.js b/react/features/security/components/security-dialog/web/SecurityDialog.js index 1e9dab7dc..98aad974e 100644 --- a/react/features/security/components/security-dialog/web/SecurityDialog.js +++ b/react/features/security/components/security-dialog/web/SecurityDialog.js @@ -125,6 +125,8 @@ function mapStateToProps(state) { } = state['features/base/conference']; const { roomPasswordNumberOfDigits } = state['features/base/config']; + const showE2ee = Boolean(e2eeSupported) && isLocalParticipantModerator(state); + return { _canEditPassword: isLocalParticipantModerator(state), _conference: conference, @@ -132,7 +134,7 @@ function mapStateToProps(state) { _locked: locked, _password: password, _passwordNumberOfDigits: roomPasswordNumberOfDigits, - _showE2ee: Boolean(e2eeSupported) + _showE2ee: showE2ee }; }