Merge pull request #31828 from nextcloud/fix/do-not-ignore-deleteGroup-result

Do not ignore return value of deleteGroup from backend
This commit is contained in:
Côme Chilliet 2022-04-04 22:04:20 +02:00 committed by GitHub
commit 51405868b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {