From e2a0a42003f954e169f088d9e571dda6f8d99be9 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 ee6ee0906bc..dacaf5b7745 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -1147,7 +1147,7 @@ $capabilities = array( 'moodle/course:viewsuspendedusers' => array( 'captype' => 'read', - 'contextlevel' => CONTEXT_SYSTEM, + 'contextlevel' => CONTEXT_COURSE, 'archetypes' => array( 'editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW