I just noticed that the @Restrictions
Annotation is missing in Deadbolt 2.2 and also in the deadbolt-2.1 version.
In the example and the documentation it is explained (http://deadbolt-2-java.herokuapp.com/#controller-Restrictions).
Here it exists (DB-2.1.x): https://github.com/schaloner/deadbolt-2/tree/D2-1.x/project-code/app/be/objectify/deadbolt/actions
Here it doesnt:
deadbolt 2.1: https://github.com/schaloner/deadbolt-2-java/tree/deadbolt-2.1/app/be/objectify/deadbolt/java/actions
master (2.2): https://github.com/schaloner/deadbolt-2-java/tree/master/app/be/objectify/deadbolt/java/actions
Is there a reason why it is missing? How do i accomplish grouping roles togehter using OR without the Annotation, just write my own Dynamic Handler or is there a better way?
Thanks for answering in advance!