Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(profile): Don't allow non-guest users to edit their profile
hristoterezovf10b13328f7a
diff --git a/config.js b/config.jsindex 5737c3dfc3..18f6b30699 100644--- a/config.js+++ b/config.js@@ -69,5 +69,9 @@ var config = {'During that time service will not be available. ' +'Apologise for inconvenience.',*/disableThirdPartyRequests: false,- minHDHeight: 540+ minHDHeight: 540,+ // If true - all users without token will be considered guests and all users+ // with token will be considered non-guests. Only guests will be allowed to+ // edit their profile.+ enableUserRolesBasedOnToken: false};diff --git a/modules/TokenData/TokenData.js b/modules/TokenData/TokenData.jsindex 64aacf7a17..313a4850e9 100644--- a/modules/TokenData/TokenData.js+++ b/modules/TokenData/TokenData.js@@ -65,9 +65,12 @@ class TokenData{* @param {string} the JWT token*/constructor(jwt) {+ this.isGuest = true;if(!jwt)return;+ this.isGuest = config.enableUserRolesBasedOnToken !== true;+this.jwt = jwt;//External API settingsdiff --git a/modules/UI/UI.js b/modules/UI/UI.jsindex 722304fcd0..568fbd2baf 100644--- a/modules/UI/UI.js+++ b/modules/UI/UI.js@@ -367,7 +367,8 @@ function registerListeners() {UI.addListener(UIEvents.TOGGLE_CONTACT_LIST, UI.toggleContactList);UI.addListener( UIEvents.TOGGLE_PROFILE, function() {- UI.toggleSidePanel("profile_container");+ if(APP.tokenData.isGuest)+ UI.toggleSidePanel("profile_container");});UI.addListener(UIEvents.TOGGLE_FILM_STRIP, UI.handleToggleFilmStrip);