server/repository.py
changeset 10301 729f36a1bcfa
parent 10235 684215aca046
parent 10285 d14db30b90d6
child 10315 0f3489d622ba
equal deleted inserted replaced
10276:ffb269e60348 10301:729f36a1bcfa
  1057         # delete remaining relations: if user can delete the entity, he can
  1057         # delete remaining relations: if user can delete the entity, he can
  1058         # delete all its relations without security checking
  1058         # delete all its relations without security checking
  1059         with session.security_enabled(read=False, write=False):
  1059         with session.security_enabled(read=False, write=False):
  1060             in_eids = ','.join([str(_e.eid) for _e in entities])
  1060             in_eids = ','.join([str(_e.eid) for _e in entities])
  1061             for rschema, _, role in entities[0].e_schema.relation_definitions():
  1061             for rschema, _, role in entities[0].e_schema.relation_definitions():
       
  1062                 if rschema.rule:
       
  1063                     continue # computed relation
  1062                 rtype = rschema.type
  1064                 rtype = rschema.type
  1063                 if rtype in schema.VIRTUAL_RTYPES or rtype in pendingrtypes:
  1065                 if rtype in schema.VIRTUAL_RTYPES or rtype in pendingrtypes:
  1064                     continue
  1066                     continue
  1065                 if role == 'subject':
  1067                 if role == 'subject':
  1066                     # don't skip inlined relation so they are regularly
  1068                     # don't skip inlined relation so they are regularly