diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-01-29 22:33:46 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-01-29 22:33:46 +0100 |
commit | 665979819766bd23cddc18a3e1666f303ac25932 (patch) | |
tree | fe6d6598d92054da90b3e3ecc2911a9bd95e3fcf /lib/user.php | |
parent | d19de49606d45046f9d7755b180e5850bceccd19 (diff) | |
download | nextcloud-server-665979819766bd23cddc18a3e1666f303ac25932.tar.gz nextcloud-server-665979819766bd23cddc18a3e1666f303ac25932.zip |
only change display name if the display name from the current user was changed; add correct display name to new user
Diffstat (limited to 'lib/user.php')
-rw-r--r-- | lib/user.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php index 3a35069fd62..6452f80602c 100644 --- a/lib/user.php +++ b/lib/user.php @@ -283,7 +283,9 @@ class OC_User { $displayName = self::determineDisplayName($uid); $result = true; } - $_SESSION['display_name'] = $displayName; + if (OC_User::getUser() === $uid) { + $_SESSION['display_name'] = $displayName; + } return $result; } |