From 18df08e8c3a03631b986881292dddb5469f9c6ef Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 1 Jul 2024 11:14:02 +0200 Subject: [PATCH] Do not require scope for event participation stats --- src/Bundle/ChillEventBundle/Security/ParticipationVoter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillEventBundle/Security/ParticipationVoter.php b/src/Bundle/ChillEventBundle/Security/ParticipationVoter.php index 670cff815..368a47cab 100644 --- a/src/Bundle/ChillEventBundle/Security/ParticipationVoter.php +++ b/src/Bundle/ChillEventBundle/Security/ParticipationVoter.php @@ -72,7 +72,7 @@ class ParticipationVoter extends AbstractChillVoter implements ProvideRoleHierar public function getRolesWithoutScope(): array { - return []; + return [self::ROLES, self::STATS]; } public function supports($attribute, $subject)