RE: What method do I use to check access?
10 May
1999
10 May
'99
11:28 p.m.
-----Original Message----- From: Jason Spisak [mailto:webmaster@mtear.com] Sent: Tuesday, May 11, 1999 3:11 AM To: Jay Dylan; zope@zope.org Subject: RE: What method do I use to check access?
Jay,
Try <!--#if "AUTHENTICATED_USER.has_role('foo')"-->. There was an excellent posting in the archives about all the possibilities with the user object. Also read the files in the AccessControl folder inside Zope/lib/python.
the has_role method I already use and is not convienient as it means I have to hard code the roles. I've looked in AccessControl and only come across def allowed(self,parent,roles=None): but was unsuccessful in getting it to do what I want. I will look for that email in the archives.
-- Jason Spisak webmaster@mtear.com
9828
Age (days ago)
9828
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jay, Dylan