From 1962f743dc385735f1a6bcac404a2b4bef8d52f1 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Tue, 14 Jan 2020 16:42:26 +0100 Subject: [PATCH] MDL-66213 roles: review new site:viewanonymousevents capability Instead of PROHIBIT this capability for teachers, the RISK_PERSONAL has been added. --- lib/db/access.php | 6 +++--- version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/db/access.php b/lib/db/access.php index a970632fe48..8e33d64e751 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -393,12 +393,12 @@ $capabilities = array( 'moodle/site:viewanonymousevents' => array( + 'riskbitmask' => RISK_PERSONAL, + 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( - 'teacher' => CAP_PROHIBIT, - 'editingteacher' => CAP_PROHIBIT, - 'manager' => CAP_ALLOW + 'manager' => CAP_ALLOW, ) ), diff --git a/version.php b/version.php index ec99292c317..48606609011 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ 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 -- 2.43.0