MDL-66213 roles: review new site:viewanonymousevents capability
authorSara Arjona <sara@moodle.com>
Tue, 14 Jan 2020 15:42:26 +0000 (16:42 +0100)
committerSara Arjona <sara@moodle.com>
Tue, 14 Jan 2020 15:42:31 +0000 (16:42 +0100)
Instead of PROHIBIT this capability for teachers, the
RISK_PERSONAL has been added.

lib/db/access.php
version.php

index a970632..8e33d64 100644 (file)
@@ -393,12 +393,12 @@ $capabilities = array(
 
     'moodle/site:viewanonymousevents' => array(
 
 
     'moodle/site:viewanonymousevents' => array(
 
+        'riskbitmask' => RISK_PERSONAL,
+
         'captype' => 'read',
         'contextlevel' => CONTEXT_MODULE,
         'archetypes' => array(
         'captype' => 'read',
         'contextlevel' => CONTEXT_MODULE,
         'archetypes' => array(
-            'teacher' => CAP_PROHIBIT,
-            'editingteacher' => CAP_PROHIBIT,
-            'manager' => CAP_ALLOW
+            'manager' => CAP_ALLOW,
         )
     ),
 
         )
     ),
 
index ec99292..4860660 100644 (file)
@@ -29,7 +29,7 @@
 
 defined('MOODLE_INTERNAL') || die();
 
 
 defined('MOODLE_INTERNAL') || die();
 
-$version  = 2020010900.01;              // YYYYMMDD      = weekly release date of this DEV branch.
+$version  = 2020010900.02;              // YYYYMMDD      = weekly release date of this DEV branch.
                                         //         RR    = release increments - 00 in DEV branches.
                                         //           .XX = incremental changes.
 $release  = '3.9dev (Build: 20200109)'; // Human-friendly version name
                                         //         RR    = release increments - 00 in DEV branches.
                                         //           .XX = incremental changes.
 $release  = '3.9dev (Build: 20200109)'; // Human-friendly version name