In the spring security documentation http://static.springsource.org/sprin...e/taglibs.html section 20.4 mentioned thatWhen I tested, it doesn't even work with integer value. It only works if the value is the name of the permission (e.g: ADMINISTRATION, WRITE, READ, etc). More over, it does not support multiple permissions. It boils down to AccessControlListTag.java, particularly in the following lineCode:<sec:accesscontrollist hasPermission="1,2" domainObject="${someObject}"> This will be shown if the user has either of the permissions represented by the values "1" or "2" on the given object. </sec:accesscontrollist>which does not parse each individual permission before passing to the permissionEvaluator.Code:if (permissionEvaluator.hasPermission(SecurityContextHolder.getContext().getAuthentication(), domainObject, hasPermission)) { return evalBody(); }
I might be missing something here, but does anyone encountering something like this?


Reply With Quote