[Zope] authenticated_user troubles
Timothy Wilson
wilson@visi.com
Tue, 15 Feb 2000 13:20:20 -0600 (CST)
On Tue, 15 Feb 2000, Darcy Clark wrote:
> I am trying to implement a mechanism to let managers edit content on a
> site that I am building. I have the following statement on various pages
> to add certain functionality to pages based on the Authenticated-users's roles:
>
> <dtml-if "AUTHENTICATED_USER.has_role(['Manager'])">
>
> blah blah (e.g. display an edit or delete button)
>
> </dtml-if>
Try using:
<dtml-if "AUTHENTICATED_USER.has_permission('Edit', this())>
HTH,
Tim
--
Tim Wilson | Visit Sibley online: | Check out:
Henry Sibley H.S. | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN | | http://slashdot.org/
wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/