MDL-84937 mdl_bigbluebuttonbn: Hide Settings for RecordingsOnly
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -163,6 +163,9 @@ const applyInstanceTypeProfile = (profileType, isFeatureEnabled) => {
|
||||
// Competencies validation.
|
||||
showFieldset('id_competenciessection', showAll ||
|
||||
isFeatureEnabled(profileType, 'competenciessection'));
|
||||
// Standards grading feature validation.
|
||||
showFieldset('id_modstandardgrade', showAll ||
|
||||
isFeatureEnabled(profileType, 'modstandardgrade'));
|
||||
// Completion validation.
|
||||
showFieldset('id_activitycompletionheader', showAll ||
|
||||
isFeatureEnabled(profileType, 'activitycompletionheader'));
|
||||
|
||||
@@ -42,6 +42,10 @@ class mod_helper {
|
||||
self::process_pre_save_checkboxes($bigbluebuttonbn);
|
||||
self::process_pre_save_common($bigbluebuttonbn);
|
||||
$bigbluebuttonbn->participants = htmlspecialchars_decode($bigbluebuttonbn->participants, ENT_COMPAT);
|
||||
// Conditionally force grade type to none if the activity is recording only.
|
||||
if ($bigbluebuttonbn->type == instance::TYPE_RECORDING_ONLY) {
|
||||
$bigbluebuttonbn->grade = GRADE_TYPE_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -325,7 +325,7 @@ class bigbluebutton_proxy extends proxy_base {
|
||||
'features' => ['showroom', 'welcomemessage', 'voicebridge', 'waitformoderator', 'userlimit',
|
||||
'recording', 'sendnotifications', 'lock', 'preuploadpresentation', 'permissions', 'schedule', 'groups',
|
||||
'modstandardelshdr', 'availabilityconditionsheader', 'tagshdr', 'competenciessection',
|
||||
'completionattendance', 'completionengagement', 'activitycompletionheader',
|
||||
'completionattendance', 'completionengagement', 'activitycompletionheader', 'modstandardgrade',
|
||||
],
|
||||
],
|
||||
instance::TYPE_RECORDING_ONLY => [
|
||||
|
||||
Reference in New Issue
Block a user