From de51fa5657f4ec5786247677151b1f9e0bfe1627 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Fri, 20 Oct 2006 03:16:07 +0000 Subject: [PATCH] merged fix for MDL-7107, missing capability check for assignroles link --- course/category.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/course/category.php b/course/category.php index ad0267f115..cfb9228835 100644 --- a/course/category.php +++ b/course/category.php @@ -112,9 +112,11 @@ } /// Print link to roles - echo ''; + if (has_capability('moodle/role:assign', $context)) { + echo ''; + } /// Print the category selector $displaylist = array(); -- 2.39.5