equal
deleted
inserted
replaced
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 |