# HG changeset patch # User Aurelien Campeas # Date 1272979820 -7200 # Node ID 52ae8f68d9e2f6cebdb8576fe59f5f5b8f245830 # Parent 6e561796804ca91ca100402ac9b2addf94b6150f [web/schemaviewer] fix bad call diff -r 6e561796804c -r 52ae8f68d9e2 web/schemaviewer.py --- a/web/schemaviewer.py Tue May 04 11:09:18 2010 +0200 +++ b/web/schemaviewer.py Tue May 04 15:30:20 2010 +0200 @@ -48,13 +48,13 @@ # no self.req managements - def may_read(self, rdef, action): + def may_read(self, rdef, action='read'): """Return true if request user may read the given schema. Always return True when no request is provided. """ if self.req is None: return True - return sch.may_have_permission('read', self.req) + return rdef.may_have_permission(action, self.req) def format_eschema(self, eschema): text = eschema.type