BBB: Blocked students from closing current confs if conf status says FAILED

skala
Yannick Warnier 12 years ago
parent 6c380ef1bc
commit 4bdbb29db4
  1. 4
      plugin/bbb/lib/bbb.lib.php

@ -231,7 +231,7 @@ class bbb {
/** /**
* Gets all the course meetings saved in the plugin_bbb_meeting table * Gets all the course meetings saved in the plugin_bbb_meeting table
* @return string * @return array Array of current open meeting rooms
*/ */
function get_course_meetings() { function get_course_meetings() {
$pass = $this->get_user_meeting_password(); $pass = $this->get_user_meeting_password();
@ -246,7 +246,7 @@ class bbb {
$meeting_bbb['end_url'] = api_get_self().'?action=end&id='.$meeting_db['id']; $meeting_bbb['end_url'] = api_get_self().'?action=end&id='.$meeting_db['id'];
if ((string)$meeting_bbb['returncode'] == 'FAILED') { if ((string)$meeting_bbb['returncode'] == 'FAILED') {
if ($meeting_db['status'] == 1) { if ($meeting_db['status'] == 1 && $this->is_teacher()) {
$this->end_meeting($meeting_db['id']); $this->end_meeting($meeting_db['id']);
} }
} else { } else {

Loading…
Cancel
Save