No real user is created when you enable the Guest user, so
you can't assign Guest or Anonymous directly to have access
rights. As the URL
(http://doc.nuxeo.com/display/KB/How+to+create+web+pages+viewable+by+anonymous+users)
says, you need to set the read permission at the Default
Domain level - this gives the anonymous user read access to
the repository. You can then create action contributions to
control what further rights the virtual Guest (anonymous
user) will have. As the URL suggests, create a filter
like...

<filter id="anonymous">
        <rule grant="true">
                <condition>#{currentUser.anonymous}</condition>
        </rule>
</filter>

in your actions contrib xml (ActionServer/actions) and then
use the filter to further refine what the anonymous user can
access, for example

<action id="login" link="logout" label="command.login">
        <category>USER_SERVICES_BOTTOM</category>
        <filter-id>anonymous</filter-id>
</action>
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to