I think you should check your user's role in order to know what role is assigned to the anonymous user.
-----Message d'origine----- De : ros [mailto:[EMAIL PROTECTED] Envoyé : vendredi 24 août 2007 13:32 À : [email protected] Objet : [appfuse-user] RE: menu-config.xml show/hide menu item with roles Why menu item always hidden? In in menu-config.xml there is <Menu name="TestMenu" title="menu.test page="/test.html" width="80" roles="ROLE_ANONYMOUS" /> Thanks. benoit wrote: > > ROLE_ANONYMOUS is the anonymous role name by default in acegi (no > authentication). > > -----Message d'origine----- > De : ros [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 24 août 2007 13:08 > À : [email protected] > Objet : [appfuse-user] menu-config.xml show/hide menu item with roles > > > Hi! > > How in appfuse application to show menu item for anonymous user and > admin, but hide this menu item for user with other roles (e.g. role editor). > > If in menu-confg.xml there is: > <Menu name="SearchEvents" title="menu.events" page="/events.html" > width="80"/> > then item visible for all users. > > If in menu-config there is: > <Menu name="SearchEvents" title="menu.events" page="/events.html" > width="80" roles="ROLE_ANONYMOUS, ROLE_ADMIN"/> then it's not visible > at all. > > What is the anonymous role name? > > Thanks. > > > -- > View this message in context: > http://www.nabble.com/menu-config.xml-show-hide-menu-item-with-roles-t > f43229 > 74s2369.html#a12310408 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/menu-config.xml-show-hide-menu-item-with-roles-tf43229 74s2369.html#a12310613 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
