MDL-53566 core: Move managecontextlocking to module

This will allow the capability to be applied at a range of contexts and
not just the system, making the system much more definable to a range of
users.
This commit is contained in:
Andrew Nicols 2018-11-13 08:06:25 +08:00
parent 56db1a2d7c
commit 6a89b6c8f0
2 changed files with 2 additions and 2 deletions

View File

@ -411,7 +411,7 @@ $string['site:maintenanceaccess'] = 'Access site while in maintenance mode';
$string['site:manageallmessaging'] = 'Add, remove, block and unblock contacts for any user';
$string['site:manageblocks'] = 'Manage blocks on a page';
$string['site:messageanyuser'] = 'Bypass user privacy preferences for messaging any user';
$string['site:managecontextlocks'] = 'Manage locking of site contexts';
$string['site:managecontextlocks'] = 'Manage locking of contexts';
$string['site:mnetloginfromremote'] = 'Login from a remote application via MNet';
$string['site:mnetlogintoremote'] = 'Roam to a remote application via MNet';
$string['site:readallmessages'] = 'Read all messages on site';

View File

@ -2435,7 +2435,7 @@ $capabilities = array(
// Context locking/unlocking.
'moodle/site:managecontextlocks' => [
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'contextlevel' => CONTEXT_MODULE,
'archetypes' => [
],
],