Control Menu Items based on Privileges of Logged In User with spring security
Posted
by
Nirmal
on Stack Overflow
See other posts from Stack Overflow
or by Nirmal
Published on 2010-12-28T05:56:34Z
Indexed on
2010/12/28
6:54 UTC
Read the original article
Hit count: 247
Hi All...
Based on this link I have incorporated the spring security core module with my grails project... I am using the Requestmap concept by storing each role, user and requestmap inside the database only...
Now my requirement is to provide the menu items based on the users assigned roles... For e.g.:
If my "User" Main Menu have following Items : Dashboard Import User Manage User
And if I have assigned a roles of Dashboard and Import User to the user with a username "auditor" then, only following Menu items should be displayed on the screen : User (Main Menu) -> Dashboard (sub menu) -> Import User (sub menu)
I have explored the Spring Security ACL plugin for the same, but it's using the Domain classes to get it working...
So, wanted to know the convenient way to do so...
Thanks in advance...
© Stack Overflow or respective owner