Skip to content

Commit

Permalink
Validate admin bbb settings, before showing in the course settings page
Browse files Browse the repository at this point in the history
BT#16957
  • Loading branch information
jmontoyaa committed Apr 14, 2020
1 parent 64a8670 commit ed17bd2
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions plugin/bbb/lib/bbb_plugin.class.php
Expand Up @@ -106,15 +106,20 @@ public static function create()
*/
public function validateCourseSetting($variable)
{
if ($variable === 'bbb_enable_conference_in_groups') {
if ($this->get('enable_conference_in_course_groups') === 'true') {
return true;
}
$result = true;
switch ($variable) {
case 'bbb_enable_conference_in_groups':

return false;
$result = $this->get('enable_conference_in_course_groups') === 'true';
break;
case 'bbb_force_record_generation':
case 'big_blue_button_record_and_store':

$result = $this->get('allow_regenerate_recording') === 'true';
break;
}

return true;
return $result;
}

/**
Expand Down

0 comments on commit ed17bd2

Please sign in to comment.