Skip to content

Commit

Permalink
Merge branch 'MDL-27855' of git://git.luns.net.uk/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Jul 6, 2011
2 parents 024ad4b + 8b0614d commit 50c1cb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/navigationlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1817,7 +1817,9 @@ protected function load_for_user($user=null, $forceforcontext=false) {
} 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) {
Expand Down

0 comments on commit 50c1cb0

Please sign in to comment.