MDL-66213 roles: Add capability for viewing anonymous events.

This commit is contained in:
David Balch
2020-01-10 13:48:51 +00:00
parent 7850f76a93
commit 50cc80fd3b
3 changed files with 13 additions and 1 deletions
+1
View File
@@ -423,6 +423,7 @@ $string['site:restore'] = 'Restore courses';
$string['site:sendmessage'] = 'Send messages to any user';
$string['site:trustcontent'] = 'Trust submitted content';
$string['site:uploadusers'] = 'Upload new users from file';
$string['site:viewanonymousevents'] = 'View anonymous events in reports';
$string['site:viewfullnames'] = 'Always see full names of users';
$string['site:viewparticipants'] = 'View participants';
$string['site:viewreports'] = 'View reports';
+11
View File
@@ -391,6 +391,17 @@ $capabilities = array(
)
),
'moodle/site:viewanonymousevents' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'teacher' => CAP_PROHIBIT,
'editingteacher' => CAP_PROHIBIT,
'manager' => CAP_ALLOW
)
),
'moodle/site:viewfullnames' => array(
'captype' => 'read',
+1 -1
View File
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2019122000.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2019122000.01; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '3.9dev (Build: 20191220)'; // Human-friendly version name