[DTML] how to check an arbitrary role+permission ?
We ask dtml questions in this group, don't we ? Can't remember. 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. Thanks in advance for any clues.. -Simon
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
Simon Michael writes:
We ask dtml questions in this group, don't we ? Can't remember.
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. Look at ZopeFind, especially "obj_roles" and "obj_permission"...
Dieter
participants (3)
-
Chris Withers -
Dieter Maurer -
Simon Michael