Browse files

Merge branch 'wip-MDL-31463-MOODLE_22_STABLE' of git://github.com/abg…

…reeve/moodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents 8b927cf + 6318805 commit ff60281e4fc4e2dea2787df026a2d81cd5d16b88 Sam Hemelryk committed Feb 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/navigationlib.php
View
3 lib/navigationlib.php
@@ -1936,7 +1936,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();

0 comments on commit ff60281

Please sign in to comment.