Try this() or Try <dtml-if "AUTHENTICATED_USER.hasRole(this(),['Site1Manager'])">
-----Original Message----- From: Gitte Wange [mailto:gitte@mmmanager.org] Sent: Tuesday, April 03, 2001 12:11 PM To: zope@zope.org Subject: [Zope] Testing on user roles
Hello,
On my site I want to make 2 different admin sites depending on what user role the logged-in user has. For this purpose I have created 2 roles.
Now I have read the helpfile and have found out that I can test for AUTHENTICATED_USER.getRoles() but this function need an object. What object should I pass to this function ?
Regards, -- ************************ Gitte Wange Jensen
System Squid Developer MMManager Aps +45 29 72 79 72
gitte@mmmanager.org ************************
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )