Export: fix infinite loop in HouseholdVoter

This commit is contained in:
2023-11-13 15:27:07 +01:00
parent 1663c6f7c7
commit 2e60ba3137
2 changed files with 6 additions and 1 deletions

View File

@@ -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'),
};
}