]> source.dussan.org Git - nextcloud-server.git/commitdiff
removal of wrong/double implemented check
authormichag86 <micha_g@arcor.de>
Tue, 4 Nov 2014 20:18:50 +0000 (21:18 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 13 Nov 2014 12:02:02 +0000 (13:02 +0100)
Check already implemented in core/settings/ajax/changedisplayname.php

lib/private/user/user.php

index 452261a75ffbec78b114a288e555c1c667773eaa..729abdc622739cf7831cc5ca82752ac752d42e4b 100644 (file)
@@ -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;