From: Arthur Schiwon Date: Mon, 16 Apr 2012 14:23:00 +0000 (+0200) Subject: group LDAP: implement groupExists function, needed for Sharing X-Git-Tag: v4.0.0beta~268 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ed54de1bbfe0c137ddaec35085b240b07e825c0a;p=nextcloud-server.git group LDAP: implement groupExists function, needed for Sharing --- 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);