symfony / security-acl

Symfony Security ACL Component
https://symfony.com/components/Security
MIT License
362 stars 49 forks source link

Replace\disable default AclVoter #27

Open davidedonattini opened 8 years ago

davidedonattini commented 8 years ago

Is possible to replace the default AclVoter (Symfony\Component\Security\Acl\Voter\AclVoter)?

Otherwise is possible to disable default AclVoter?

Thanks

Invis1ble commented 6 years ago

It's a bit a trick, but you can disable AclVoter by removing security.voter tag from service definition. I created gist with some code: https://gist.github.com/Invis1ble/a45331c49805819f3266fb06ec22bee9