mirror of
https://github.com/moodle/moodle.git
synced 2025-05-07 08:45:43 +02:00
Merge branch 'MDL-27855' of git://git.luns.net.uk/moodle
This commit is contained in:
commit
50c1cb0394
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user