From e3f3b6fabeb48868f32438abd4b1bf134fd665b6 Mon Sep 17 00:00:00 2001 From: ricel souza Date: Thu, 4 Oct 2012 16:11:06 -0500 Subject: [PATCH] Prevent students from creating videoconference sessions - refs #5596 --- plugin/bbb/start.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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();