author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Thu, 08 Oct 2015 11:47:15 +0200 | |
changeset 10636 | a9e9daf77598 |
parent 10635 | 2b1cb1ba8df5 |
child 10637 | a8b33789b982 |
predicates.py | file | annotate | diff | comparison | revisions |
--- a/predicates.py Thu Oct 08 12:13:35 2015 +0200 +++ b/predicates.py Thu Oct 08 11:47:15 2015 +0200 @@ -1506,7 +1506,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