In security.xml there is 
    <bean id="anonymousProcessingFilter"
class="org.acegisecurity.providers.anonymous.AnonymousProcessingFilter">
        <property name="key" value="anonymous"/>
        <property name="userAttribute" value="anonymous,ROLE_ANONYMOUS"/>
    </bean>
and if in menu-config.xml set roles="anonymous,ROLE_ANONYMOUS,ROLE_USER"
menu item is hidden for anonymous user. 

When user is not authenticated its roles not visible to menu roles reader? 


mraible wrote:
> 
> The anonymous role name is what's assigned by Acegi to
> non-authenticated users. It's Acegi only and the name itself is
> configured in security.xml (which is merged in in 2.x).
> 
> Matt
> 
> On 8/26/07, ros <[EMAIL PROTECTED]> wrote:
>>
>> 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-tf4331763s2369.html#a12336948
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> 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-tf4331763s2369.html#a12362894
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to