From ff55f6b21d7790a3641d1389d88b2be5fad52d2d Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Wed, 30 Oct 2019 18:36:03 +0100 Subject: [PATCH] MDL-67073 core_course: fix capability context --- lib/db/access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/access.php b/lib/db/access.php index bc24d73d71e53..47a66373dcc75 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -1150,7 +1150,7 @@ 'moodle/course:viewsuspendedusers' => array( 'captype' => 'read', - 'contextlevel' => CONTEXT_SYSTEM, + 'contextlevel' => CONTEXT_COURSE, 'archetypes' => array( 'editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW