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