From 7e70c4ee95281d8fb9c38b982f8c2fbc5c59731d Mon Sep 17 00:00:00 2001 From: michag86 Date: Tue, 4 Nov 2014 21:18:50 +0100 Subject: [PATCH] removal of wrong/double implemented check Check already implemented in core/settings/ajax/changedisplayname.php --- lib/private/user/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5