mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Update various things. I know, great description.
This commit is contained in:
@@ -60,7 +60,8 @@ trait ChecksLogin
|
||||
/** @var UserRoleEnum $role */
|
||||
foreach ($this->acceptedRoles as $role) {
|
||||
// system owner cannot overrule this, MUST be member of the group.
|
||||
if ($user->hasRoleInGroup($userGroup, $role, true, false)) {
|
||||
$access = $user->hasRoleInGroupOrOwner($userGroup, $role);
|
||||
if ($access) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user