web/views/schema.py
changeset 4108 f9c51250480a
parent 4045 f4a52abb6f4f
child 4252 6c4f109c2b03
equal deleted inserted replaced
4107:1f256b896b1d 4108:f9c51250480a
   359     def should_display_schema(self, rschema):
   359     def should_display_schema(self, rschema):
   360         return (super(RestrictedSchemaVisitorMixIn, self).should_display_schema(rschema)
   360         return (super(RestrictedSchemaVisitorMixIn, self).should_display_schema(rschema)
   361                 and rschema.may_have_permission('read', self._cw))
   361                 and rschema.may_have_permission('read', self._cw))
   362 
   362 
   363     def should_display_attr(self, eschema, rschema):
   363     def should_display_attr(self, eschema, rschema):
   364         return (super(RestrictedSchemaVisitorMixIn, self).should_display_attr(rschema)
   364         return (super(RestrictedSchemaVisitorMixIn, self).should_display_attr(eschema, rschema)
   365                 and eschema.rdef(rschema).may_have_permission('read', self._cw))
   365                 and eschema.rdef(rschema).may_have_permission('read', self._cw))
   366 
   366 
   367 
   367 
   368 class FullSchemaVisitor(RestrictedSchemaVisitorMixIn, s2d.FullSchemaVisitor):
   368 class FullSchemaVisitor(RestrictedSchemaVisitorMixIn, s2d.FullSchemaVisitor):
   369     pass
   369     pass