From 6fdce3b7e92a5c93134719cd2d4934a73f943e02 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 22 Nov 2013 13:24:38 +0100 Subject: [PATCH] LDAP: user proxy must support canChangeAvatar too --- apps/user_ldap/user_proxy.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/user_ldap/user_proxy.php b/apps/user_ldap/user_proxy.php index 092fdbf7c78..3c2821e87b7 100644 --- a/apps/user_ldap/user_proxy.php +++ b/apps/user_ldap/user_proxy.php @@ -163,6 +163,15 @@ class User_Proxy extends lib\Proxy implements \OCP\UserInterface { return $this->handleRequest($uid, 'getDisplayName', array($uid)); } + /** + * @brief checks whether the user is allowed to change his avatar in ownCloud + * @param $uid string the ownCloud user name + * @return boolean either the user can or cannot + */ + public function canChangeAvatar($uid) { + return $this->handleRequest($uid, 'canChangeAvatar', array($uid)); + } + /** * @brief Get a list of all display names * @returns array with all displayNames (value) and the corresponding uids (key)