Skip to content
Snippets Groups Projects
Commit e5d46d0d authored by Morris Jobke's avatar Morris Jobke
Browse files

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

removal of wrong/double implemented check
parents 559b34e5 7e70c4ee
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment