MDL-75316 core_moodlenet: Create MoodleNet capability

Originally implemented as MDL-75319
This commit is contained in:
Huong Nguyen
2023-04-18 17:02:47 +08:00
committed by Michael Hawkins
parent 852e31dbc4
commit 7727745bf7
3 changed files with 12 additions and 1 deletions
+1
View File
@@ -309,6 +309,7 @@ $string['manager'] = 'Manager';
$string['managerdescription'] = 'Managers can access courses and modify them, but usually do not participate in them.';
$string['manageroles'] = 'Manage roles';
$string['maybeassignedin'] = 'Context types where this role may be assigned';
$string['moodlenet:shareactivity'] = 'Share activities to MoodleNet';
$string['morethan'] = 'More than {$a}';
$string['multipleroles'] = 'Multiple roles';
$string['my:manageblocks'] = 'Manage Dashboard page blocks';
+10
View File
@@ -2681,4 +2681,14 @@ $capabilities = array(
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => [],
],
// Allow users to share activities to MoodleNet.
'moodle/moodlenet:shareactivity' => [
'captype' => 'read',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => [
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
]
],
);
+1 -1
View File
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2023041400.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2023041400.01; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '4.2beta (Build: 20230414)'; // Human-friendly version name