Do not ignore return value of deleteGroup from backend

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2022-04-04 16:40:07 +02:00
parent 57ecf55e0f
commit 32eef3b10f
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -354,8 +354,7 @@ class Group implements IGroup {
}
foreach ($this->backends as $backend) {
if ($backend->implementsActions(\OC\Group\Backend::DELETE_GROUP)) {
$result = true;
$backend->deleteGroup($this->gid);
$result = $result || $backend->deleteGroup($this->gid);
}
}
if ($result) {