[Zope] Authentication
Philip Aylesworth
zopelist@regalint.com
Fri, 30 Apr 1999 10:21:09 -0400
You set security for a document on the security tab for the document.
You can set view so that only that role can view it. This will force a
login when you try to access the page.
Are you still logged in as a manager? If you are using the same browser
to view and manage your site you will have to quit the browser and
restart it so that you are an anonymous user again.
Phil A
Tom Deprez wrote:
>
> Hi all,
>
> Martijn or somebody else,
>
> Can you please explain me the code below. I don't understand it and it
> doesn't work the way I want.
>
> <h2><!--#var title_or_id--></h2>
>
> <!--#call "REQUEST.set('allowedVisualData',
> AUTHENTICATED_USER.hasRole(_.None, ['allowedVisualData']))"-->
>
> <p>
>
> <!--#if allowedVisualData-->
> This should be a picture :-)
> <!--#else-->
> Security violation, cryptic messages!
> <!--#/if-->
>
> </p>
> <!--#var standard_html_footer-->
>
> If I browse to this page I get the message : this should be a picture.
>
> Where can I set that a user can only enter the page after he's given a
> password? Or where can I set these user roles? I don't get it. At the
> moment I haven't set anything and it still allows me to enter the data.
>
> Tia, Tom
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )