# HG changeset patch # User Sylvain Thénault # Date 1261506372 -3600 # Node ID b3258d2afe04c12c26782ac467324ccf77715083 # Parent c29a49d646afe4e120b2ba41d07559b30267dacc fix virtual relation detection: erschema is no more a relation type but a relation def in _synchronize_permissions diff -r c29a49d646af -r b3258d2afe04 server/migractions.py --- a/server/migractions.py Tue Dec 22 19:25:08 2009 +0100 +++ b/server/migractions.py Tue Dec 22 19:26:12 2009 +0100 @@ -330,8 +330,6 @@ def _synchronize_permissions(self, erschema, teid): """permission synchronization for an entity or relation type""" - if erschema in VIRTUAL_RTYPES: - return assert teid, erschema if 'update' in erschema.ACTIONS or erschema.final: # entity type @@ -522,7 +520,7 @@ self.rqlexecall(ss.constraint2rql(rschema, subjtype, objtype, newcstr), ask_confirm=confirm) - if syncperms: + if syncperms and not rschema in VIRTUAL_RTYPES: self._synchronize_permissions(rdef, repordef.eid) # base actions ############################################################