[Pkg-owncloud-commits] [owncloud] 10/74: removal of wrong/double implemented check

David Prévot taffit at moszumanska.debian.org
Tue Dec 2 22:04:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 135479cae2b6261fa019416a31bf408eda4f98bd
Author: michag86 <micha_g at arcor.de>
Date:   Tue Nov 4 21:18:50 2014 +0100

    removal of wrong/double implemented check
    
    Check already implemented in core/settings/ajax/changedisplayname.php
---
 lib/private/user/user.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/user/user.php b/lib/private/user/user.php
index 452261a..729abdc 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list