Skip to content
Snippets Groups Projects
Commit ed54de1b authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

group LDAP: implement groupExists function, needed for Sharing

parent 320fde9e
No related branches found
No related tags found
No related merge requests found
...@@ -103,6 +103,15 @@ class OC_GROUP_LDAP extends OC_Group_Backend { ...@@ -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) { private function retrieveList($filter, $attr) {
$list = OC_LDAP::search($filter, $attr); $list = OC_LDAP::search($filter, $attr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment