[Zope] Getting role information
Martijn Faassen
M.Faassen@vet.uu.nl
Wed, 17 Feb 1999 17:31:51 +0100
Brad Clements wrote:
> On 17 Feb 99, at 16:31, Martijn Faassen wrote:
[I wanted role information]
>
> My standard_html_header has this line
>
> <!--#call "REQUEST.set('isManager',AUTHENTICATED_USER.hasRole(_.None,['Manager']))"-->
>
> My standard_html_footer has this:
>
> <!--#if isManager-->
> <br><p align="right" class="HotLink">
> <a class="HotLink" href="<!--#var URL0-->/manage_main">Edit This Page</a>
> <!--#endif-->
Cool! Looks like it is what I need. Thanks!
> This is stolen from the www.zope.org site. You can use their dhtml viewer to see > pages that don't have a "show DHTML" hyperlink on them by typing in the > appropriate URL directly.
Ah, I didn't know one could do that. Studying their 'show DTML' link
tells me how. Thanks again. I should study www.zope.org's DTML more
often, I see.
Regards,
Martijn