MDL-84937 mdl_bigbluebuttonbn: Hide Settings for RecordingsOnly

This commit is contained in:
jfederico
2025-04-08 18:28:44 +00:00
parent 1e89ba2335
commit dba1bdaceb
5 changed files with 10 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3
View File
@@ -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 => [