hooks/syncschema.py
branchstable
changeset 4570 ede247bbbf62
parent 4467 0e73d299730a
child 4591 47acae3cb778
--- a/hooks/syncschema.py	Mon Feb 15 15:05:15 2010 +0100
+++ b/hooks/syncschema.py	Mon Feb 15 15:10:25 2010 +0100
@@ -716,6 +716,9 @@
             return
         if isinstance(erschema, RelationSchema): # XXX 3.6 migration
             return
+        if isinstance(erschema, RelationDefinitionSchema) and \
+               self.action in ('delete', 'add'): # XXX 3.6.1 migration
+            return
         perms = list(erschema.action_permissions(self.action))
         if hasattr(self, 'group_eid'):
             perm = self.session.entity_from_eid(self.group_eid).name