Skip to content

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

Hides sip dialout button if configured to show it for non guest users.

damencho32ea2161eb88
diff --git a/react/features/toolbox/actions.web.js b/react/features/toolbox/actions.web.js
index efcb1d40fe..fbf7608a82 100644
--- a/react/features/toolbox/actions.web.js
+++ b/react/features/toolbox/actions.web.js
@@ -227,10 +227,15 @@ export function showSharedVideoButton(): Function {
export function showSIPCallButton(show: boolean): Function {
return (dispatch: Dispatch<*>) => {
const buttonName = 'sip';
+
+ // hide the button if there is a config to check for user roles,
+ // based on the token and the the user is guest
const shouldShow
= APP.conference.sipGatewayEnabled()
&& UIUtil.isButtonEnabled(buttonName)
- && show;
+ && show
+ && (!config.enableUserRolesBasedOnToken
+ || !APP.tokenData.isGuest);
if (shouldShow) {
dispatch(setToolbarButton(buttonName, {