predicates.py
changeset 10646 45671fb330f5
parent 10499 d0907690af55
parent 10636 a9e9daf77598
child 10651 9ca33768473c
--- a/predicates.py	Tue Sep 29 12:09:04 2015 +0200
+++ b/predicates.py	Fri Oct 09 17:52:14 2015 +0200
@@ -1369,7 +1369,7 @@
         score = self.score_class(req.vreg['etypes'].etype_class(etype), req)
         if score:
             eschema = req.vreg.schema.eschema(etype)
-            if eschema.has_local_role('add') or eschema.has_perm(req, 'add'):
+            if eschema.may_have_permission('add', req):
                 return score
         return 0