Skip to content

Commit

Permalink
CONTRIB-9167: Fix lock settings (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssj365 authored Jan 26, 2023
1 parent 4d6004e commit 6dd5b43
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@ function bigbluebuttonbn_get_instance_type_profiles() {
BIGBLUEBUTTONBN_TYPE_ROOM_ONLY => array('id' => BIGBLUEBUTTONBN_TYPE_ROOM_ONLY,
'name' => get_string('instance_type_room_only', 'bigbluebuttonbn'),
'features' => array('showroom', 'welcomemessage', 'voicebridge', 'waitformoderator', 'userlimit',
'recording', 'sendnotifications', 'preuploadpresentation', 'permissions', 'schedule', 'groups',
'recording', 'lock', 'sendnotifications', 'preuploadpresentation', 'permissions', 'schedule', 'groups',
'modstandardelshdr', 'availabilityconditionsheader', 'tagshdr', 'competenciessection',
'clienttype', 'completionattendance', 'completionengagement', 'availabilityconditionsheader')),
BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY => array('id' => BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ M.mod_bigbluebuttonbn.modform = {
// Show recordings settings validation.
this.showFieldset('id_recordings', showAll ||
this.isFeatureEnabled(profileType, 'showrecordings'));
// Show lock settings validation.
this.showFieldset('id_lock', showAll ||
this.isFeatureEnabled(profileType, 'lock'));
// Show recordings imported settings validation.
this.showInput('id_recordings_imported', showAll ||
this.isFeatureEnabled(profileType, 'showrecordings'));
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ M.mod_bigbluebuttonbn.modform = {
// Show recordings settings validation.
this.showFieldset('id_recordings', showAll ||
this.isFeatureEnabled(profileType, 'showrecordings'));
// Show lock settings validation.
this.showFieldset('id_lock', showAll ||
this.isFeatureEnabled(profileType, 'lock'));
// Show recordings imported settings validation.
this.showInput('id_recordings_imported', showAll ||
this.isFeatureEnabled(profileType, 'showrecordings'));
Expand Down
3 changes: 3 additions & 0 deletions yui/src/modform/js/modform.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ M.mod_bigbluebuttonbn.modform = {
// Show recordings settings validation.
this.showFieldset('id_recordings', showAll ||
this.isFeatureEnabled(profileType, 'showrecordings'));
// Show lock settings validation.
this.showFieldset('id_lock', showAll ||
this.isFeatureEnabled(profileType, 'lock'));
// Show recordings imported settings validation.
this.showInput('id_recordings_imported', showAll ||
this.isFeatureEnabled(profileType, 'showrecordings'));
Expand Down

0 comments on commit 6dd5b43

Please sign in to comment.