From 943e3f04d568af84160d437268415d027cfb052d 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 9b7668e7c8d..8e8c0ef7e3e 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