MDL-73254 mod_bigbluebuttonbn: Fix hide recording functionality

* The hide recording is working in combination with several settings and should
allow the Record button to be hidden either globally on in a given activity
This commit is contained in:
Laurent David
2022-01-24 08:33:45 +01:00
parent e63604fb6d
commit 9877868c6f
4 changed files with 11 additions and 10 deletions
+3 -2
View File
@@ -731,9 +731,10 @@ EOF;
*/
public function should_show_recording_button(): bool {
global $CFG;
if (!empty($CFG->bigbluebuttonbn_recording_hide_button_editable)) {
return (bool) $this->get_instance_var('recordhidebutton');
$recordhidebutton = (bool) $this->get_instance_var('recordhidebutton');
$recordallfromstart = (bool) $this->get_instance_var('recordallfromstart');
return !($recordhidebutton || $recordallfromstart);
}
return !$CFG->bigbluebuttonbn_recording_hide_button_default;