hasPermission in sec:authorize
Hi,
I am using a custom PermissionEvaluator and i want to use em in my jsp-views. So i tryed to use the following Syntax:
Code:
<sec:authorize access="hasPermission(#user, 'update')">
something secured
</sec:authorize>
But when i call this view i get the following exception (i shorted it):
Code:
WARNUNG: ApplicationDispatcher[/Omnibus] PWC1231: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.springframework.security.access.expression.SecurityExpressionRoot.hasPermission(SecurityExpressionRoot.java:137)
That can only be the permissionEvaluator! How can i inject my permissionEvaluator into the SecurityExpressionRoot?
thx for any help :)