@ -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')