Skip to content

Commit

Permalink
MDL-75316 core_moodlenet: Create MoodleNet capability
Browse files Browse the repository at this point in the history
Originally implemented as MDL-75319
  • Loading branch information
HuongNV13 authored and mickhawkins committed Apr 18, 2023
1 parent 852e31d commit 7727745
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en/role.php
Expand Up @@ -309,6 +309,7 @@
$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';
Expand Down
10 changes: 10 additions & 0 deletions lib/db/access.php
Expand Up @@ -2681,4 +2681,14 @@
'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,
]
],
);
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -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
Expand Down

0 comments on commit 7727745

Please sign in to comment.