[Zope] View Permissions

David Burton eloquence@eloquent-designs.f2s.com
Thu, 16 May 2002 11:26:09 +0100


Have you unchecked the Acquire permissions setting checkbox corresponding with the view option?

This may be the cause of your problems.

Yours,
David Burton

16/05/2002 11:15:34, "Richard McKinley" <richard_mckinley@hotmail.com> wrote:

>Hi,
>
>I want to limit access by role to the functionnality within my website.
>Firstly, I need to remove the view permission from the anonymous role so 
>that users are required to log on to view certain pages.
>
>I attempted to do this by unchecking the view permission against the anon 
>role in the security tab of the users folder within the folder I was working 
>in.
>
>However, this appears to make no difference - I have even added a dtml-if 
>statement to the contents of the page I'm testing to explicitly check if the 
>current user has view permissions before displaying any data:
>
><dtml-if expr="_.SecurityCheckPermission('View', this())">
>
>.. page content ..
>
></dtml-if>
>
>Unfortunately, this appears to make no difference:  I've checked that the 
>current user is anonymous: (which proved the theory)
>
><dtml-var expr="_.SecurityGetUser().getUserName()">
>
>Any help much appreciated!
>
>Thanks,
>Richard
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists - 
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
"Into the abyss we stare, hoping that the abyss does not gaze so intently upon us"