ouch, has_perm was always returning False...
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 13 Jan 2010 17:40:53 +0100
changeset 4233 94ffaecd8e8c
parent 4232 d9d031d68be2
child 4234 0adf45697422
ouch, has_perm was always returning False...
schema.py
--- a/schema.py	Wed Jan 13 16:07:54 2010 +0100
+++ b/schema.py	Wed Jan 13 17:40:53 2010 +0100
@@ -449,6 +449,7 @@
             for rdef in self.rdefs.itervalues():
                 if not rdef.has_perm(session, action, **kwargs):
                     return False
+        return True
 
     @deprecated('use .rdef(subjtype, objtype).role_cardinality(role)')
     def cardinality(self, subjtype, objtype, target):