mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Update various things. I know, great description.
This commit is contained in:
@@ -117,7 +117,8 @@ class UserGroup extends Model
|
||||
}
|
||||
// need at least ready only to be aware of the user group's existence,
|
||||
// but owner/full role (in the group) or global owner role may overrule this.
|
||||
if ($user->hasRoleInGroup($userGroup, UserRoleEnum::READ_ONLY, true, true)) {
|
||||
$access = $user->hasRoleInGroupOrOwner($userGroup, UserRoleEnum::READ_ONLY) || $user->hasRole('owner');
|
||||
if ($access) {
|
||||
return $userGroup;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user