From 4bdbb29db4abcbfb3c57f8bc288d0144d9969b7c Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 25 Dec 2012 18:02:45 -0500 Subject: [PATCH] BBB: Blocked students from closing current confs if conf status says FAILED --- plugin/bbb/lib/bbb.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/bbb/lib/bbb.lib.php b/plugin/bbb/lib/bbb.lib.php index 3ad012bfb3..91d322c7da 100644 --- a/plugin/bbb/lib/bbb.lib.php +++ b/plugin/bbb/lib/bbb.lib.php @@ -231,7 +231,7 @@ class bbb { /** * 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() { $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']; 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']); } } else {