From 9c87db1519d9b7728eaa4d675800b74bf73dfcb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 16 May 2018 16:59:33 +0200 Subject: [PATCH] upgrade ReportVoter to sf3 --- Security/Authorization/ReportVoter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Security/Authorization/ReportVoter.php b/Security/Authorization/ReportVoter.php index 5227cbc9c..2950abd8d 100644 --- a/Security/Authorization/ReportVoter.php +++ b/Security/Authorization/ReportVoter.php @@ -75,7 +75,7 @@ class ReportVoter extends AbstractChillVoter implements ProvideRoleHierarchyInte public function getRoles() { - return $this->getSupportedAttributes(); + return [self::CREATE, self::UPDATE, self::SEE]; } public function getRolesWithoutScope()