diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-13 15:39:07 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-11-13 15:39:07 +0100 |
commit | e5d46d0d94011a5d150f38e04729ce1c735fe31e (patch) | |
tree | 1e6fc018ef9a435de99aad7ff162a38c5fa03f32 /lib | |
parent | 559b34e53d1adda66e12b3bd0c7a7459c9304a5c (diff) | |
parent | 7e70c4ee95281d8fb9c38b982f8c2fbc5c59731d (diff) | |
download | nextcloud-server-e5d46d0d94011a5d150f38e04729ce1c735fe31e.tar.gz nextcloud-server-e5d46d0d94011a5d150f38e04729ce1c735fe31e.zip |
Merge pull request #11956 from owncloud/remove-check-for-allow_user_to_change_display_name
removal of wrong/double implemented check
Diffstat (limited to 'lib')
-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; |