Commit 3bb91448 authored by Robert Lyon's avatar Robert Lyon Committed by Kristina Hoeppner
Browse files

Remove the display of the username for normal users (Bug #1434935)

This is a fix for a regression which introduced the display of the
username in various areas of Mahara where they were not displayed

Change-Id: I0e63cc99ef55ae51d1276e5f776a16d7e1934f23
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 0e1d1edc
......@@ -1033,7 +1033,7 @@ function display_name($user, $userto=null, $nameonly=false, $realname=false, $us
$userto = get_user_for_display($userto);
$user = get_user_for_display($user);
$addusername = ($username && empty($nousernames)) || !empty($userto->admin) || !empty($userto->staff) || $userto === $user;
$addusername = ($username && empty($nousernames)) || !empty($userto->admin) || !empty($userto->staff);
// if they don't have a preferred name set, just return here
if (empty($user->preferredname)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment