# HG changeset patch # User Sylvain Thénault # Date 1260265220 -3600 # Node ID 934e758a73ef9f89e4f35bb912de1e777e22c0d0 # Parent 280c910c87101495904d4db79f3cba3bcad9462c# Parent 65ee20fb907846571808064174b943c5a3940d99 merge diff -r 280c910c8710 -r 934e758a73ef schema.py --- a/schema.py Tue Dec 08 10:40:12 2009 +0100 +++ b/schema.py Tue Dec 08 10:40:20 2009 +0100 @@ -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: