🤖 Auto commit for release 'develop' on 2026-03-06

This commit is contained in:
JC5
2026-03-06 08:00:41 +01:00
parent 2c997d8d95
commit 8ac4c535b4
6 changed files with 8 additions and 23 deletions

View File

@@ -255,11 +255,7 @@ class UserGroupRepository implements UserGroupRepositoryInterface, UserGroupInte
// if there are no other owners and the current users does not get or keep the owner role, refuse.
if (
0 === $ownerCount
&& (
0 === count($data['roles'])
|| count($data['roles']) > 0
&& !in_array(UserRoleEnum::OWNER->value, $data['roles'], true)
)
&& (0 === count($data['roles']) || count($data['roles']) > 0 && !in_array(UserRoleEnum::OWNER->value, $data['roles'], true))
) {
Log::debug('User needs to keep owner role in this group, refuse to act');