diff --git a/plugin/bbb/start.php b/plugin/bbb/start.php index 69de4bdb6a..a3ccd8b24a 100644 --- a/plugin/bbb/start.php +++ b/plugin/bbb/start.php @@ -32,9 +32,11 @@ if ($bbb->plugin_enabled) { exit; } } else { - $url = $bbb->create_meeting($meeting_params); - header('location: '.$url); - exit; + if ($bbb->is_teacher()) { + $url = $bbb->create_meeting($meeting_params); + header('location: '.$url); + exit; + } } } else { $url = 'listing.php'; @@ -48,4 +50,4 @@ if ($bbb->plugin_enabled) { $message = Display::return_message(get_lang('ServerIsNotConfigured'), 'warning'); } $tpl->assign('message', $message); -$tpl->display_one_col_template(); \ No newline at end of file +$tpl->display_one_col_template();