api update
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Mon, 07 Dec 2009 08:52:38 -0800
changeset 4019 7f68077d2c3b
parent 4007 91d11fda4aa0
child 4020 65ee20fb9078
api update
schema.py
--- a/schema.py	Mon Dec 07 07:10:40 2009 -0800
+++ b/schema.py	Mon Dec 07 08:52:38 2009 -0800
@@ -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: