mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-28 04:56:13 +00:00
Export: fix infinite loop in HouseholdVoter
This commit is contained in:
parent
1663c6f7c7
commit
2e60ba3137
5
.changes/unreleased/Fixed-20231113-152621.yaml
Normal file
5
.changes/unreleased/Fixed-20231113-152621.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
kind: Fixed
|
||||
body: 'Export: Fix failure in export linked to household'
|
||||
time: 2023-11-13T15:26:21.891117274+01:00
|
||||
custom:
|
||||
Issue: "189"
|
@ -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'),
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user