aboutsummaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-29 22:33:46 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-29 22:33:46 +0100
commit665979819766bd23cddc18a3e1666f303ac25932 (patch)
treefe6d6598d92054da90b3e3ecc2911a9bd95e3fcf /lib/user.php
parentd19de49606d45046f9d7755b180e5850bceccd19 (diff)
downloadnextcloud-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.php4
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;
}