fix for MDL-7107, missing capability check for assignroles link
This commit is contained in:
+4
-2
@@ -112,9 +112,11 @@
|
||||
}
|
||||
|
||||
/// Print link to roles
|
||||
echo '<div class="rolelink" align="right"><a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.
|
||||
$context->id.'">'.get_string('assignroles','role').'</a></div>';
|
||||
|
||||
if (has_capability('moodle/role:assign', $context)) {
|
||||
echo '<div class="rolelink" align="right"><a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.
|
||||
$context->id.'">'.get_string('assignroles','role').'</a></div>';
|
||||
}
|
||||
/// Print the category selector
|
||||
|
||||
$displaylist = array();
|
||||
|
||||
Reference in New Issue
Block a user