-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Labels
Description
- Extend
Symfony\Component\Security\Core\Authorization\Voter\Voter.
This will automatically enable the new CacheableVoter feature after the symony upgrade.
-
Clean interface provided by
Claroline\CoreBundle\Security\Voter\AbstractVoter.- Remove container injection.
- Do not override symfony behavior. There is a lot of custom logic which is not really needed at all.
- Move helpers (isToolGranted, isAdmin, etc.) into traits and only use it where needed.
-
Create an
OrganizationManagerVoterto grant all accesses. -
Create a
WorkspaceManagerVoterto grant all accesses. -
Declare
Claroline\CoreBundle\Security\Voter\AbstractVoteras abstract service
For now we use the _instanceof feature in yml config. But it must be copied into each voter file which is tedious/hard to maintain.
- Remove
VIEWattribute (it's never used).
Reactions are currently unavailable