Re: [Zope] Detecting Roles not working

2000-10-05 Thread Jonathan Cheyne
Thanks to Kapil, Geir and Daniel for their various syntaxes. Very enlightening. I did cure it but by accident while experimenting with the solutions offered (so they *were* worth it) The zclass title is displayed a la slashdot or freshmeat in boxes as clickable links drawn from the catalog. If

Re: [Zope] Detecting Roles not working

2000-10-05 Thread Tres Seaver
Kapil Thangavelu [EMAIL PROTECTED] wrote Jonathan Cheyne wrote: Hi all I have built the basis of a site with full, form-based webediting of objects. Coming round to cleanup time and I wanted to remove certain visible functions from the default object views unless you have already

Re: [Zope] Detecting Roles not working

2000-10-04 Thread Kapil Thangavelu
Jonathan Cheyne wrote: Hi all I have built the basis of a site with full, form-based webediting of objects. Coming round to cleanup time and I wanted to remove certain visible functions from the default object views unless you have already logged in (with various possible roles) in

Re: [Zope] Detecting Roles not working

2000-10-04 Thread Daniel Rusch
dtml-if "AUTHENTICATED_USER.has_role('Staff', this())" This works for me, no pun intended :) Dan Kapil Thangavelu wrote: Jonathan Cheyne wrote: Hi all I have built the basis of a site with full, form-based webediting of objects. Coming round to cleanup time and I wanted to remove

Re: [Zope] Detecting Roles not working

2000-10-04 Thread Peter Bengtsson
Stolen somewhere from this list, and I don't remember from who. dtml-if "AUTHENTICATED_USER.has_permission('Edit', this())" ...is cool to have as well if you ever need it. Let's you not use specific names of ACL's such as "Staff" or "CopyWriter". dtml-if