瀏覽代碼

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

j8
damencho 8 年之前
父節點
當前提交
32ea2161eb
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. 6
    1
      react/features/toolbox/actions.web.js

+ 6
- 1
react/features/toolbox/actions.web.js 查看文件

@@ -227,10 +227,15 @@ export function showSharedVideoButton(): Function {
227 227
 export function showSIPCallButton(show: boolean): Function {
228 228
     return (dispatch: Dispatch<*>) => {
229 229
         const buttonName = 'sip';
230
+
231
+        // hide the button if there is a config to check for user roles,
232
+        // based on the token and the the user is guest
230 233
         const shouldShow
231 234
             = APP.conference.sipGatewayEnabled()
232 235
                 && UIUtil.isButtonEnabled(buttonName)
233
-                && show;
236
+                && show
237
+                && (!config.enableUserRolesBasedOnToken
238
+                        || !APP.tokenData.isGuest);
234 239
 
235 240
         if (shouldShow) {
236 241
             dispatch(setToolbarButton(buttonName, {

Loading…
取消
儲存