web/views/owl.py
changeset 4073 03681ba6da0b
parent 4003 b9436fe77c9e
child 4091 3fc6a53b7a6a
equal deleted inserted replaced
4071:e19e586cc74e 4073:03681ba6da0b
   189         for rschema, targetschemas, role in eschema.relation_definitions():
   189         for rschema, targetschemas, role in eschema.relation_definitions():
   190             if rschema.meta:
   190             if rschema.meta:
   191                 continue
   191                 continue
   192             for tschema in targetschemas:
   192             for tschema in targetschemas:
   193                 rdef = rschema.role_rdef(eschema, tschema, role)
   193                 rdef = rschema.role_rdef(eschema, tschema, role)
   194                 if rdef.may_have_permission('read', self.req):
   194                 if rdef.may_have_permission('read', self._cw):
   195                     break
   195                     break
   196             else:
   196             else:
   197                 # no read perms to any relation of this type. Skip.
   197                 # no read perms to any relation of this type. Skip.
   198                 continue
   198                 continue
   199             if role == 'object':
   199             if role == 'object':