aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-04-16 16:23:00 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-04-16 16:23:00 +0200
commited54de1bbfe0c137ddaec35085b240b07e825c0a (patch)
treefeb99211511cee80506c42782e7b2f8337f010c9 /apps/user_ldap
parent320fde9eec72e958df81da33678e7306fc1d6e96 (diff)
downloadnextcloud-server-ed54de1bbfe0c137ddaec35085b240b07e825c0a.tar.gz
nextcloud-server-ed54de1bbfe0c137ddaec35085b240b07e825c0a.zip
group LDAP: implement groupExists function, needed for Sharing
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/group_ldap.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index ce87b074ab2..e5948459dd0 100644
--- a/apps/user_ldap/group_ldap.php
+++ b/apps/user_ldap/group_ldap.php
@@ -103,6 +103,15 @@ class OC_GROUP_LDAP extends OC_Group_Backend {
}
}
+ /**
+ * check if a group exists
+ * @param string $gid
+ * @return bool
+ */
+ public function groupExists($gid){
+ return in_array($gid, $this->getGroups());
+ }
+
private function retrieveList($filter, $attr) {
$list = OC_LDAP::search($filter, $attr);