Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit d72ed57

Browse files
committed
use unanimous access decision strategy for custom voters
1 parent 400ff94 commit d72ed57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/packages/security.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ security:
4040
# admin dashboard - disabled in favor of #[IsGranted] attribute in AdminDashboardController
4141
# - { path: ^/admin, role: ROLE_ADMIN }
4242

43+
# https://symfony.com/doc/current/security/voters.html#changing-the-access-decision-strategy
44+
# https://symfony.com/bundles/EasyAdminBundle/current/security.html#custom-security-voters
45+
access_decision_manager:
46+
strategy: unanimous
47+
4348
when@test:
4449
security:
4550
password_hashers:

0 commit comments

Comments
 (0)