[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful -
instance.py:1.16.2.3
Marius Gedminas
marius at pov.lt
Mon Mar 8 16:51:28 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv19054/src/zope/app/workflow/stateful
Modified Files:
Tag: mgedmin-events2-branch
instance.py
Log Message:
Added a checkPermission method to zope.security.
=== Zope3/src/zope/app/workflow/stateful/instance.py 1.16.2.2 => 1.16.2.3 ===
--- Zope3/src/zope/app/workflow/stateful/instance.py:1.16.2.2 Mon Mar 8 13:43:42 2004
+++ Zope3/src/zope/app/workflow/stateful/instance.py Mon Mar 8 16:50:58 2004
@@ -40,6 +40,7 @@
from zope.schema import getFields
from zope.security.management import getInteraction, getSecurityPolicy
from zope.security.checker import CheckerPublic, Checker
+from zope.security import checkPermission
from zope.security.proxy import Proxy
from zope.tales.engine import Engine
@@ -285,11 +286,7 @@
if self.status == trans.sourceState:
# check permissions
permission = trans.permission
- #
- if (permission is not None
- and permission is not CheckerPublic
- and not policy.checkPermission(permission, self,
- interaction)):
+ if not checkPermission(permission, self):
continue
ctx = self._extendContext(trans, contexts)
More information about the Zope3-Checkins
mailing list