From 2ac814d04f5bdc04a36696687f1ec5a05943414e Mon Sep 17 00:00:00 2001 From: Friederike Schwager <friederike.schwager@rwth-aachen.de> Date: Tue, 13 Apr 2021 11:27:31 +0200 Subject: [PATCH] give teachers the capability to see private comments --- db/access.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/db/access.php b/db/access.php index f432462..0ce718c 100644 --- a/db/access.php +++ b/db/access.php @@ -348,6 +348,8 @@ $capabilities = array( 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( 'manager' => CAP_ALLOW, + 'editingteacher' => CAP_ALLOW, + 'teacher' => CAP_ALLOW, ), ), @@ -355,10 +357,10 @@ $capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( - 'student' => CAP_ALLOW, 'manager' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'teacher' => CAP_ALLOW, + 'student' => CAP_ALLOW, ), ), @@ -366,10 +368,10 @@ $capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( - 'student' => CAP_ALLOW, 'manager' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'teacher' => CAP_ALLOW, + 'student' => CAP_ALLOW, ), ), -- GitLab