Download the PHP package curiosity26/acl-helper-bundle without Composer
On this page you can find all versions of the php package curiosity26/acl-helper-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download curiosity26/acl-helper-bundle
More information about curiosity26/acl-helper-bundle
Files in curiosity26/acl-helper-bundle
Package acl-helper-bundle
Short Description Allows direct querying for entities with ACLs implied
License MIT
Informations about the package acl-helper-bundle
Acl Helper Bundle
This bundle is created for the purpose of applying ACL's when querying entities; preventing the need for post-query iteration. This helps with things like pagination and handling security on multiple records simultaneously.
Querying does not apply to associations. It is recommended that you handle your own querying for any deep associations that may require ACL's be applied to them.
Field level security is also not taken into account at query time. It is up to you and your application to handle field level security.
Example
In this example, let's pretend we have an entity which is owned by user1
and those with ROLE_ADMIN
can
edit, delete and view, ROLE_USER
users can just view.
ACL Manager
To make it easier to build ACLs, the ACL Manager was created. It's pretty much just a chain wrapper that allows the ACL to be found/created and ACEs to be inserted, updated or deleted.
Example
All versions of acl-helper-bundle with dependencies
symfony/framework-bundle Version ^4.1.12
symfony/acl-bundle Version ^1.0
doctrine/doctrine-bundle Version ^1.9
doctrine/orm Version ^2.6
symfony/class-loader Version ^3.4