Add admin option see BT#12620

pull/2487/head
jmontoyaa 8 years ago
parent 58ffa55c03
commit 33d0c2b884
  1. 4
      plugin/bbb/lib/bbb.lib.php
  2. 1
      plugin/bbb/lib/bbb_plugin.class.php

@ -1504,6 +1504,10 @@ class bbb
'global_conference_allow_roles'
);
if (api_is_platform_admin()) {
$userInfo['status'] = PLATFORM_ADMIN;
}
$showGlobalLink = true;
if (!empty($allowedRoles)) {
if (!in_array($userInfo['status'], $allowedRoles)) {

@ -48,6 +48,7 @@ class BBBPlugin extends Plugin
'global_conference_allow_roles' => [
'type' => 'select',
'options' => [
PLATFORM_ADMIN => get_lang('Administrator'),
COURSEMANAGER => get_lang('Teacher'),
STUDENT => get_lang('Student'),
STUDENT_BOSS => get_lang('StudentBoss')

Loading…
Cancel
Save