server/migractions.py
changeset 10799 ec97974b9010
parent 10685 44cb0e9df181
child 10921 977def81780a
--- a/server/migractions.py	Thu Oct 08 13:51:54 2015 +0200
+++ b/server/migractions.py	Wed Sep 16 16:04:17 2015 +0200
@@ -458,7 +458,10 @@
             assert reporschema.eid, reporschema
             self.rqlexecall(ss.updaterschema2rql(rschema, reporschema.eid),
                             ask_confirm=self.verbosity>=2)
-        if syncrdefs:
+        if rschema.rule:
+            if syncperms:
+                self._synchronize_permissions(rschema, reporschema.eid)
+        elif syncrdefs:
             for subj, obj in rschema.rdefs:
                 if (subj, obj) not in reporschema.rdefs:
                     continue
@@ -572,6 +575,7 @@
         against its current definition:
         * order and other properties
         * constraints
+        * permissions
         """
         subjtype, objtype = str(subjtype), str(objtype)
         rschema = self.fs_schema.rschema(rtype)