[Zope-dev] [DTML] how to check an arbitrary role+permission ?

Chris Withers chrisw@nipltd.com
Sat, 18 Aug 2001 16:39:08 +0100


> We ask dtml questions in this group, don't we ? Can't remember.

zope@zope.org is probably better.

> This is hopefully a simple one. I have a zwiki-based website, where
> some of the pages are public and some are private. On one of the admin
> pages I want to list all the public pages, ie those pages for which
> the Anonymous role has View permision.

This is ITFM now, even the dead tree version ;-)

There's a method of the namespace that's something like:

_.SecurityCheckPermission()

...or some such.

cheers,

Chris