diff -r 4b89ca0b11ad -r 96dba2efd16d misc/migration/3.18.0_Any.py --- 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)