Merge branch 'MDL-27855' of git://git.luns.net.uk/moodle
This commit is contained in:
@@ -1817,7 +1817,9 @@ class global_navigation extends navigation_node {
|
||||
} else {
|
||||
// This is the site so add a users node to the root branch
|
||||
$usersnode = $this->rootnodes['users'];
|
||||
$usersnode->action = new moodle_url('/user/index.php', array('id'=>$course->id));
|
||||
if (has_capability('moodle/course:viewparticipants', $coursecontext)) {
|
||||
$usersnode->action = new moodle_url('/user/index.php', array('id'=>$course->id));
|
||||
}
|
||||
$userviewurl = new moodle_url('/user/profile.php', $baseargs);
|
||||
}
|
||||
if (!$usersnode) {
|
||||
|
||||
Reference in New Issue
Block a user