18 Dec
2001
18 Dec
'01
5:24 p.m.
Hi all, I couldn't get this code to work in Zope. Can some one help me please? ##################################################### <dtml-if "AUTHENTICATED_USER.getRoles() =='<dtml-var X>'"> Then execute code <dtml-else> Permission Denied! </dtml-if> ##################################################### The .getRoles() method returns a string of more than one roles ('Manager','Owner','*******'). Assume that <dtml-var X> = Owner ,how do i chop off the return of getRoles() to validate the above statement? thanks, -- Mike Tran Shuffle Master Gaming Inc.