Skip to content
Permalink
Browse files

Fix bbb group settings.

  • Loading branch information...
jmontoyaa committed Jun 3, 2016
1 parent fb838b4 commit 2635b526e91154fbedcad941b5510a2142489864
Showing with 14 additions and 4 deletions.
  1. +14 −4 plugin/bbb/lib/bbb.lib.php
@@ -55,11 +55,21 @@ public function __construct($host = '', $salt = '', $isGlobalConference = false)
$this->groupSupport = isset($columns['group_id']) ? true : false;
if ($this->groupSupport) {
// Plugin check
$this->groupSupport = (bool) $plugin->get('enable_conference_in_course_groups');
if ($this->groupSupport) {
$courseInfo = api_get_course_info();
if ($courseInfo) {
$this->groupSupport = api_get_course_setting('bbb_enable_conference_in_groups') === '1';
// Platform check
$bbbSetting = api_get_setting('bbb_enable_conference_in_course_groups');
$bbbSetting = isset($bbbSetting['bbb']) ? $bbbSetting['bbb'] === 'true' : false;
if ($bbbSetting) {
// Course check
$courseInfo = api_get_course_info();
if ($courseInfo) {
$this->groupSupport = api_get_course_setting('bbb_enable_conference_in_groups') === '1';
}
}
}
}
@@ -152,7 +162,7 @@ public function isConferenceManager()
# a user joins. If after this period, a user hasn't joined, the meeting is
# removed from memory.
defaultMeetingCreateJoinDuration=5
*
*
* @return mixed
*/
public function createMeeting($params)

0 comments on commit 2635b52

Please sign in to comment.
You can’t perform that action at this time.