[Zope3-checkins] CVS: Zope3/src/zope/app/security/grants -
principalrole.py:1.4
Garrett Smith
cvs-admin at zope.org
Thu Oct 23 11:18:25 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/security/grants
In directory cvs.zope.org:/tmp/cvs-serv16239/src/zope/app/security/grants
Modified Files:
principalrole.py
Log Message:
Added a comment to explain use of trustedRemoveSecurityProxy.
=== Zope3/src/zope/app/security/grants/principalrole.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/security/grants/principalrole.py:1.3 Thu Oct 23 11:04:56 2003
+++ Zope3/src/zope/app/security/grants/principalrole.py Thu Oct 23 11:18:24 2003
@@ -91,6 +91,8 @@
creating one if necessary """
annotations = getAdapter(self._context, IAnnotations)
try:
+ # there's a chance that annotations is security proxied -
+ # remove proxy to avoid authentication failure on role lookup
return trustedRemoveSecurityProxy(annotations)[annotation_key]
except KeyError:
if create:
More information about the Zope3-Checkins
mailing list