[Pkg-owncloud-commits] [owncloud] 65/239: LDAP: user proxy must support canChangeAvatar too
David Prévot
taffit at moszumanska.debian.org
Fri Nov 29 01:32:20 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 6fdce3b7e92a5c93134719cd2d4934a73f943e02
Author: Arthur Schiwon <blizzz at owncloud.com>
Date: Fri Nov 22 13:24:38 2013 +0100
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 092fdbf..3c2821e 100644
--- a/apps/user_ldap/user_proxy.php
+++ b/apps/user_ldap/user_proxy.php
@@ -164,6 +164,15 @@ class User_Proxy extends lib\Proxy implements \OCP\UserInterface {
}
/**
+ * @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)
*
--
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