mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
Export: fix infinite loop in HouseholdVoter
This commit is contained in:
@@ -78,7 +78,7 @@ class HouseholdVoter extends Voter implements ProvideRoleHierarchyInterface, Chi
|
||||
return match ($attribute) {
|
||||
self::SEE => $this->checkAssociatedMembersRole($subject, PersonVoter::SEE),
|
||||
self::EDIT => $this->checkAssociatedMembersRole($subject, PersonVoter::UPDATE),
|
||||
self::STATS => $this->voteOnAttribute($attribute, $subject, $token),
|
||||
self::STATS => $this->helper->voteOnAttribute($attribute, $subject, $token),
|
||||
default => throw new \UnexpectedValueException('attribute not supported'),
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user