group LDAP: implement groupExists function, needed for Sharing

This commit is contained in:
Arthur Schiwon 2012-04-16 16:23:00 +02:00
parent 320fde9eec
commit ed54de1bbf
1 changed files with 9 additions and 0 deletions

View File

@ -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);