Hello all,
  i am currently using Struts menu in my applicatio, together with Acegi.
I followed the documentation for applying permissions to Struts menus
depending on which roles the user has, but i found out something
weird..
I have following user

User1:  ROLE_USER and ROLE_SUPERVISOR
User2:  ROLE_USER

I have only 1 Menu with 4 submenu.
submenu1 is bound to ROLE_USER
submenu2 is bound to ROLE_USER
submenu3 is bound to ROLE_SUPERVISOR
submenu4 is bound to ROLE_USER

I am using Strutsmenu's role adapter, since acegi uses interceptor to
'populate' users with proper roles.

What happens is that when i log in with User1, i can see all 4 submenu, while
when i log in with User2 i can't see any of the menu.. so it looks
like ROLE_SUPERVISOR is overriding any other roles for all submenus...

can anyone explain me then how can i display all menus to users that
have ROLE_USER and ROLE_SUPERVISOR, and only  3 menu out of 4 to users
that have ROLE_USER role?

thanks in advance and regards
 marco


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
struts-menu-user mailing list
struts-menu-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to