schema.py
changeset 4045 f4a52abb6f4f
parent 4037 42f3a80738d7
child 4066 0555f170c4d1
--- a/schema.py	Tue Dec 08 16:46:56 2009 +0100
+++ b/schema.py	Tue Dec 08 16:50:36 2009 +0100
@@ -437,7 +437,7 @@
         elif subjtype:
             for tschema in self.targets(subjtype, 'subject'):
                 rdef = self.rdef(subjtype, tschema)
-                if not rdef.has_perm(action, req, **kwargs):
+                if not rdef.has_perm(session, action, **kwargs):
                     return False
         elif objtype:
             for tschema in self.targets(objtype, 'object'):