summaryrefslogtreecommitdiffstats
path: root/lib/private/user
diff options
context:
space:
mode:
authormichag86 <micha_g@arcor.de>2014-11-04 21:18:50 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-11-13 13:02:02 +0100
commit7e70c4ee95281d8fb9c38b982f8c2fbc5c59731d (patch)
treececf80320a424b94d37fb46b3f59f3e7b6c9ee48 /lib/private/user
parenta069171cda9f1f0ec129018c15e9696ae44c7154 (diff)
downloadnextcloud-server-7e70c4ee95281d8fb9c38b982f8c2fbc5c59731d.tar.gz
nextcloud-server-7e70c4ee95281d8fb9c38b982f8c2fbc5c59731d.zip
removal of wrong/double implemented check
Check already implemented in core/settings/ajax/changedisplayname.php
Diffstat (limited to 'lib/private/user')
-rw-r--r--lib/private/user/user.php2
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;