Sets update_perm properly for old-style org unit setting permissions.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
'bool'
);
+
+-- Applies old style update permissions via new-style update_perm for org unit settings.
+UPDATE
+ config.org_unit_setting_type coust
+SET
+ update_perm = ppl.id
+FROM
+ permission.perm_list ppl
+WHERE
+ ppl.code = 'UPDATE_ORG_UNIT_SETTING.' || coust.name
+ AND update_perm IS NULL;
--- /dev/null
+-- Applies old style update permissions via new-style update_perm for org unit settings.
+UPDATE
+ config.org_unit_setting_type coust
+SET
+ update_perm = ppl.id
+FROM
+ permission.perm_list ppl
+WHERE
+ ppl.code = 'UPDATE_ORG_UNIT_SETTING.' || coust.name
+ AND update_perm IS NULL;