equal
deleted
inserted
replaced
903 erschema = self.cnx.vreg.schema.schema_by_eid(self.eid) |
903 erschema = self.cnx.vreg.schema.schema_by_eid(self.eid) |
904 except KeyError: |
904 except KeyError: |
905 # duh, schema not found, log error and skip operation |
905 # duh, schema not found, log error and skip operation |
906 self.warning('no schema for %s', self.eid) |
906 self.warning('no schema for %s', self.eid) |
907 return |
907 return |
908 if isinstance(erschema, RelationSchema): # XXX 3.6 migration |
|
909 return |
|
910 if isinstance(erschema, RelationDefinitionSchema) and \ |
|
911 self.action in ('delete', 'add'): # XXX 3.6.1 migration |
|
912 return |
|
913 perms = list(erschema.action_permissions(self.action)) |
908 perms = list(erschema.action_permissions(self.action)) |
914 if self.group_eid is not None: |
909 if self.group_eid is not None: |
915 perm = self.cnx.entity_from_eid(self.group_eid).name |
910 perm = self.cnx.entity_from_eid(self.group_eid).name |
916 else: |
911 else: |
917 perm = erschema.rql_expression(self.expr) |
912 perm = erschema.rql_expression(self.expr) |