Skip to content

Commit

Permalink
Merge branch 'wip-MDL-31463-MOODLE_21_STABLE' of git://github.com/abg…
Browse files Browse the repository at this point in the history
…reeve/moodle into MOODLE_21_STABLE
  • Loading branch information
Sam Hemelryk committed Feb 13, 2012
2 parents 38b0b25 + 65c29e2 commit 7b53f78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/navigationlib.php
Expand Up @@ -1928,7 +1928,8 @@ protected function load_for_user($user=null, $forceforcontext=false) {
return false;
}
// Add a branch for the current user
$usernode = $usersnode->add(fullname($user, true), $userviewurl, self::TYPE_USER, null, $user->id);
$canseefullname = has_capability('moodle/site:viewfullnames', $coursecontext);
$usernode = $usersnode->add(fullname($user, $canseefullname), $userviewurl, self::TYPE_USER, null, $user->id);

if ($this->page->context->contextlevel == CONTEXT_USER && $user->id == $this->page->context->instanceid) {
$usernode->make_active();
Expand Down

0 comments on commit 7b53f78

Please sign in to comment.