MDL-53566 core: Allow admins more control over locking

This change allows sites to configure locking such that it does not
apply to administrators at all.
This commit is contained in:
Andrew Nicols
2018-11-13 21:17:40 +08:00
parent 6a89b6c8f0
commit bb41db9ce0
5 changed files with 182 additions and 3 deletions
+7
View File
@@ -19,6 +19,13 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('contextlocking', new lang_string('contextlocking', 'core_admin'),
new lang_string('contextlocking_desc', 'core_admin'), 0));
$temp->add(new admin_setting_configcheckbox(
'contextlockappliestoadmin',
new lang_string('contextlockappliestoadmin', 'core_admin'),
new lang_string('contextlockappliestoadmin_desc', 'core_admin'),
1
));
$temp->add(new admin_setting_configcheckbox('forceclean', new lang_string('forceclean', 'core_admin'),
new lang_string('forceclean_desc', 'core_admin'), 0));