Fix groups
This commit is contained in:
parent
96949649f0
commit
ed1f034e6b
1 changed files with 2 additions and 2 deletions
|
@ -102,9 +102,9 @@ class Groups{
|
||||||
|
|
||||||
public function deleteGroup($parameters){
|
public function deleteGroup($parameters){
|
||||||
// Check it exists
|
// Check it exists
|
||||||
if(!$this->groupManager->grouExists($parameters['groupid'])){
|
if(!$this->groupManager->groupExists($parameters['groupid'])){
|
||||||
return new OC_OCS_Result(null, 101);
|
return new OC_OCS_Result(null, 101);
|
||||||
} else if($parameters['groupid'] === 'admin' || !$this->groupManger->get($parameters['groupid'])->delete()){
|
} else if($parameters['groupid'] === 'admin' || !$this->groupManager->get($parameters['groupid'])->delete()){
|
||||||
// Cannot delete admin group
|
// Cannot delete admin group
|
||||||
return new OC_OCS_Result(null, 102);
|
return new OC_OCS_Result(null, 102);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue