merge
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 08 Dec 2009 10:40:20 +0100
changeset 4022 934e758a73ef
parent 4021 280c910c8710 (current diff)
parent 4020 65ee20fb9078 (diff)
child 4023 eae23c40627a
merge
--- a/schema.py	Tue Dec 08 10:40:12 2009 +0100
+++ b/schema.py	Tue Dec 08 10:40:20 2009 +0100
@@ -412,8 +412,8 @@
 
     def may_have_permission(self, action, req, eschema=None, role=None):
         if eschema is not None:
-            for tschema in rschema.targets(eschema, role):
-                rdef = rschema.role_rdef(eschema, tschema, role)
+            for tschema in self.targets(eschema, role):
+                rdef = self.role_rdef(eschema, tschema, role)
                 if rdef.may_have_permission(action, req):
                     return True
         else: