[Zope] Setting properties based on security

Robin Dunn robin@alldunn.com
Tue, 2 Mar 1999 13:25:20 -0800


I have a folder with various boolean properties associated with it which are
accessed by the dtml docs as flags for enabling or disabling content.  Turn
off the flag and a chunk of the page goes away when it is next viewed.  This
works great, but I would like to associate that behaviour with the security
attributes.  In other words, when somebody in the Anonymous role is viewing
objects in the folder the properties should be unset, but when users in the
manager (or some other specific role) view the pages then the properties
should be set and those parts of the pages are activated.

How can this be done?

--
Robin Dunn
robin@AllDunn.com
http://AllDunn.com/robin/
http://AllDunn.com/wxPython/  Check it out!
Try http://AllDunn.com/laughworks/ for a good laugh.