Prevent students from creating videoconference sessions - refs #5596

skala
ricel souza 12 years ago
parent 38fe26b53d
commit e3f3b6fabe
  1. 10
      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();
$tpl->display_one_col_template();

Loading…
Cancel
Save