Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat: Drop lockRoomGuestEnabled.

damenchoc4ba97e87c14
diff --git a/config.js b/config.js
index 18cbb3a1de..580a0c53e3 100644
--- a/config.js
+++ b/config.js
@@ -370,9 +370,6 @@ var config = {
// Whether or not some features are checked based on token.
// enableFeaturesBasedOnToken: false,
- // Enable lock room for all moderators, even when userRolesBasedOnToken is enabled and participants are guests.
- // lockRoomGuestEnabled: false,
-
// When enabled the password used for locking a room is restricted to up to the number of digits specified
// roomPasswordNumberOfDigits: 10,
// default: roomPasswordNumberOfDigits: false,
diff --git a/react/features/base/participants/functions.js b/react/features/base/participants/functions.js
index 31c954cd9f..f6dacaed96 100644
--- a/react/features/base/participants/functions.js
+++ b/react/features/base/participants/functions.js
@@ -298,12 +298,9 @@ export function isIconUrl(icon: ?string | ?Object) {
*
* @param {Object|Function} stateful - Object or function that can be resolved
* to the Redux state.
- * @param {?boolean} ignoreToken - When true we ignore the token check.
* @returns {boolean}
*/
-export function isLocalParticipantModerator(
- stateful: Object | Function,
- ignoreToken: ?boolean = false) {
+export function isLocalParticipantModerator(stateful: Object | Function) {
const state = toState(stateful);
const localParticipant = getLocalParticipant(state);
@@ -313,9 +310,8 @@ export function isLocalParticipantModerator(
return (
localParticipant.role === PARTICIPANT_ROLE.MODERATOR
- && (ignoreToken
- || !state['features/base/config'].enableUserRolesBasedOnToken
- || !state['features/base/jwt'].isGuest));
+ && (!state['features/base/config'].enableUserRolesBasedOnToken
+ || !state['features/base/jwt'].isGuest));
}
/**
diff --git a/react/features/security/components/security-dialog/SecurityDialog.js b/react/features/security/components/security-dialog/SecurityDialog.js
index 51016b7712..15e16d551c 100644
--- a/react/features/security/components/security-dialog/SecurityDialog.js
+++ b/react/features/security/components/security-dialog/SecurityDialog.js
@@ -125,13 +125,10 @@ function mapStateToProps(state) {
locked,
password
} = state['features/base/conference'];
- const {
- lockRoomGuestEnabled,
- roomPasswordNumberOfDigits
- } = state['features/base/config'];
+ const { roomPasswordNumberOfDigits } = state['features/base/config'];
return {
- _canEditPassword: isLocalParticipantModerator(state, lockRoomGuestEnabled),
+ _canEditPassword: isLocalParticipantModerator(state),
_conference: conference,
_dialIn: state['features/invite'],
_locked: locked,