diff options
author | michag86 <micha_g@arcor.de> | 2014-11-04 21:18:50 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-11-13 18:32:13 +0100 |
commit | 135479cae2b6261fa019416a31bf408eda4f98bd (patch) | |
tree | 81d1ac5d004cc79827d4fd979a8bdd54e7e19266 /lib/private | |
parent | 29fd95967b44b13f42c65d831c7f4a581f22a2b6 (diff) | |
download | nextcloud-server-135479cae2b6261fa019416a31bf408eda4f98bd.tar.gz nextcloud-server-135479cae2b6261fa019416a31bf408eda4f98bd.zip |
removal of wrong/double implemented check
Check already implemented in core/settings/ajax/changedisplayname.php
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/user/user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/user/user.php b/lib/private/user/user.php index 452261a75ff..729abdc6227 100644 --- a/lib/private/user/user.php +++ b/lib/private/user/user.php @@ -115,7 +115,7 @@ class User implements IUser { */ public function setDisplayName($displayName) { $displayName = trim($displayName); - if ($this->canChangeDisplayName() && !empty($displayName)) { + if ($this->backend->implementsActions(\OC_USER_BACKEND_SET_DISPLAYNAME) && !empty($displayName)) { $this->displayName = $displayName; $result = $this->backend->setDisplayName($this->uid, $displayName); return $result !== false; |