/** * check if the backend supports changing display names * * @return bool */ public function canChangeDisplayName() { if ($this->config and $this->config->getSystemValue('allow_user_to_change_display_name') === false) { return false; } else { return $this->backend->implementsActions(\OC_USER_BACKEND_SET_DISPLAYNAME); } }