Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.1.0
-
None
Description
On Spring ACL you can annotate a function with something like this:
@PreAuthorize("hasAnyRole('ROLE_SUPER_USER','ROLE_ SYSTEM_ADMIN') and hasPermission(#id, 'com.xyz.db.domain.impl.XyzConfigImpl', 'read')")
Note the evaluation of a method, the use of logic operators, the ability t use the parameters passed to the method.
This is a neccessary feature for doing any ACL like control check from an annotation because otherwise you're obliged to do the check your self from inside the method body.