equal
deleted
inserted
replaced
714 # duh, schema not found, log error and skip operation |
714 # duh, schema not found, log error and skip operation |
715 self.error('no schema for %s', self.eid) |
715 self.error('no schema for %s', self.eid) |
716 return |
716 return |
717 if isinstance(erschema, RelationSchema): # XXX 3.6 migration |
717 if isinstance(erschema, RelationSchema): # XXX 3.6 migration |
718 return |
718 return |
|
719 if isinstance(erschema, RelationDefinitionSchema) and \ |
|
720 self.action in ('delete', 'add'): # XXX 3.6.1 migration |
|
721 return |
719 perms = list(erschema.action_permissions(self.action)) |
722 perms = list(erschema.action_permissions(self.action)) |
720 if hasattr(self, 'group_eid'): |
723 if hasattr(self, 'group_eid'): |
721 perm = self.session.entity_from_eid(self.group_eid).name |
724 perm = self.session.entity_from_eid(self.group_eid).name |
722 else: |
725 else: |
723 perm = erschema.rql_expression(self.expr) |
726 perm = erschema.rql_expression(self.expr) |