[Pkg-owncloud-commits] [owncloud] 17/32: LDAP: getDisplayNamesInGroup is not an option for group backends anymore
David Prévot
taffit at moszumanska.debian.org
Wed Apr 23 18:59:01 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 8d00f1ca1f2bfe5399554b6b2895d5168c3f4058
Author: Arthur Schiwon <blizzz at owncloud.com>
Date: Fri Mar 14 13:52:54 2014 +0100
LDAP: getDisplayNamesInGroup is not an option for group backends anymore
---
apps/user_ldap/group_ldap.php | 21 +--------------------
apps/user_ldap/group_proxy.php | 16 ----------------
2 files changed, 1 insertion(+), 36 deletions(-)
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index 32e2cec..3021741 100644
--- a/apps/user_ldap/group_ldap.php
+++ b/apps/user_ldap/group_ldap.php
@@ -219,25 +219,6 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
}
/**
- * @brief get a list of all display names in a group
- * @returns array with display names (value) and user ids(key)
- */
- public function displayNamesInGroup($gid, $search, $limit, $offset) {
- if(!$this->enabled) {
- return array();
- }
- if(!$this->groupExists($gid)) {
- return array();
- }
- $users = $this->usersInGroup($gid, $search, $limit, $offset);
- $displayNames = array();
- foreach($users as $user) {
- $displayNames[$user] = \OC_User::getDisplayName($user);
- }
- return $displayNames;
- }
-
- /**
* @brief get a list of all groups
* @returns array with group names
*
@@ -318,6 +299,6 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
* compared with OC_USER_BACKEND_CREATE_USER etc.
*/
public function implementsActions($actions) {
- return (bool)(OC_GROUP_BACKEND_GET_DISPLAYNAME & $actions);
+ return false;
}
}
diff --git a/apps/user_ldap/group_proxy.php b/apps/user_ldap/group_proxy.php
index 4404bd7..97b342c 100644
--- a/apps/user_ldap/group_proxy.php
+++ b/apps/user_ldap/group_proxy.php
@@ -145,22 +145,6 @@ class Group_Proxy extends lib\Proxy implements \OCP\GroupInterface {
}
/**
- * @brief get a list of all display names in a group
- * @returns array with display names (value) and user ids(key)
- */
- public function displayNamesInGroup($gid, $search, $limit, $offset) {
- $displayNames = array();
-
- foreach($this->backends as $backend) {
- $backendUsers = $backend->displayNamesInGroup($gid, $search, $limit, $offset);
- if (is_array($backendUsers)) {
- $displayNames = array_merge($displayNames, $backendUsers);
- }
- }
- return $displayNames;
- }
-
- /**
* @brief get a list of all groups
* @returns array with group names
*
--
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