Merge pull request #11956 from owncloud/remove-check-for-allow_user_to_change_display_name

removal of wrong/double implemented check
This commit is contained in:
Morris Jobke 2014-11-13 15:39:07 +01:00
commit e5d46d0d94
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;