summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-05-05 14:08:45 +0200
committerVincent Petry <pvince81@owncloud.com>2014-05-05 14:08:45 +0200
commit1a454f61ed2211e8a5cf11f1292c53a4d6801dd5 (patch)
tree3da9c5f5b28959369a0b9a0c91530643ae02ed60 /apps/user_ldap
parent341fcdc37a74b630ef7d47b5f0b336622c072ddc (diff)
parent837a02184b38f62b87993a4da2afbd9daefedd98 (diff)
downloadnextcloud-server-1a454f61ed2211e8a5cf11f1292c53a4d6801dd5.tar.gz
nextcloud-server-1a454f61ed2211e8a5cf11f1292c53a4d6801dd5.zip
Merge pull request #8386 from owncloud/fix_6946_master
Fix 6946 master
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/group_ldap.php24
-rw-r--r--apps/user_ldap/group_proxy.php16
2 files changed, 1 insertions, 39 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index 3b5f377e108..e5bec602f62 100644
--- a/apps/user_ldap/group_ldap.php
+++ b/apps/user_ldap/group_ldap.php
@@ -363,25 +363,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
*
@@ -507,9 +488,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
- | OC_GROUP_BACKEND_COUNT_USERS
- ) & $actions);
+ return (bool)(OC_GROUP_BACKEND_COUNT_USERS & $actions);
}
}
diff --git a/apps/user_ldap/group_proxy.php b/apps/user_ldap/group_proxy.php
index c0009736239..ea94990ffe4 100644
--- a/apps/user_ldap/group_proxy.php
+++ b/apps/user_ldap/group_proxy.php
@@ -156,22 +156,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
*