diff --git a/src/Bundle/ChillReportBundle/Security/Authorization/ReportVoter.php b/src/Bundle/ChillReportBundle/Security/Authorization/ReportVoter.php index 2ee15ef02..1645f79dd 100644 --- a/src/Bundle/ChillReportBundle/Security/Authorization/ReportVoter.php +++ b/src/Bundle/ChillReportBundle/Security/Authorization/ReportVoter.php @@ -65,6 +65,8 @@ class ReportVoter extends AbstractChillVoter implements ProvideRoleHierarchyInte if ($subject instanceof Center) { return self::LISTS === $attribute; } + + return false; } protected function voteOnAttribute($attribute, $subject, TokenInterface $token): bool