removal of wrong/double implemented check

Check already implemented in core/settings/ajax/changedisplayname.php
This commit is contained in:
michag86 2014-11-04 21:18:50 +01:00 committed by Morris Jobke
parent a069171cda
commit 7e70c4ee95
1 changed files with 1 additions and 1 deletions

View 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;