mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
FIxed 'assign roles' link from course admin
This commit is contained in:
parent
218564acfc
commit
5c524305e3
@ -137,7 +137,7 @@ class block_admin extends block_list {
|
||||
|
||||
/// always need a role assignment link
|
||||
if (has_capability('moodle/role:assign', $context)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/admin/roles/roleassignment.php?contextid='.$context->id.'">'.get_string('assignusers', 'roles').'</a>';
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/admin/roles/assign.php?contextid='.$context->id.'">'.get_string('assignroles', 'role').'</a>';
|
||||
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/users.gif" alt="" />';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user