I have a task. I have a few tabs in Jsp, while clicking on each, takes to different page. I need to display the tabs based on the rights that a logged in user's role has. For eg, if the user does not have the right to update, the update tab should not be displayed. I would appreciate if any one could give me an idea about how to do it.
I am supposed to be displaying based on the user's rights using Spring's <security:authorize> tag.
I have this right AUTHORITY_GENERAL_INQUIRY. But still the tab does not get displayed. I tried changing ifAllGranted to ifNotGranted, the tab displays.
How do I check what authorities the user has? We use ldap for authentication and authorization.
Thanks for your response. I did a workaround, by using <c:if > and checking the permissions. Probably <security:authorize> didn't work for me because it is deprecated, like you said.
Appreciate your help.