From: toyomoyo Date: Fri, 20 Oct 2006 03:16:07 +0000 (+0000) Subject: merged fix for MDL-7107, missing capability check for assignroles link X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=de51fa5657f4ec5786247677151b1f9e0bfe1627;p=moodle.git merged fix for MDL-7107, missing capability check for assignroles link --- 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();