-
Mar 4th, 2009, 11:05 AM
#1
<sec:authorize is there a showIfNOTGranted?
Hi,
I've been reading about the Spring Security <sec:authorize tag, all the examples are assuming that you want to hide something if the user is not authorised.
eg
<sec:authorize ifAllGranted="ROLE_SUPERVISOR">
Hello, you are a Supervisor
</sec:authorize>
...but is there a way to show something if you are NOT authorized?
eg
<sec:authorize ifNOTGranted="ROLE_SUPERVISOR">
Go away! You are NOT a Supervisor!
</sec:authorize>
Obviously it would be easy to write my own tag, but wonder if the Spring one provided this functionality?
Thanks
David Bevan
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules