misc/migration/3.18.0_Any.py
changeset 9395 96dba2efd16d
parent 9375 8e88576787c3
child 9406 38debfa8b536
child 9460 a2a0bc984863
--- a/misc/migration/3.18.0_Any.py	Fri Jan 10 16:37:12 2014 +0100
+++ b/misc/migration/3.18.0_Any.py	Thu Oct 24 13:15:53 2013 +0200
@@ -118,3 +118,12 @@
             args['x'] = eschema.eid
             session.execute(rql, args)
         commit()
+
+
+add_relation_definition('CWAttribute', 'add_permission', 'CWGroup')
+add_relation_definition('CWAttribute', 'add_permission', 'RQLExpression')
+
+# all attributes perms have to be refreshed ...
+for rschema in schema.relations():
+    if relation.final:
+        sync_schema_props_perms(rschema.type, syncprops=False)