From 74cc612a662ce7496aa12b0dcc0e959acae51064 Mon Sep 17 00:00:00 2001 From: Szymon Radziszewski <117299684+sradziszewski@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:40:21 +0200 Subject: [PATCH] OLMIS-8005: Added DHIS2 Integration rights (#124) --- .../20241011221730514__add_dhis2_integration_rights.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/main/resources/db/migration/20241011221730514__add_dhis2_integration_rights.sql diff --git a/src/main/resources/db/migration/20241011221730514__add_dhis2_integration_rights.sql b/src/main/resources/db/migration/20241011221730514__add_dhis2_integration_rights.sql new file mode 100644 index 00000000..8504869e --- /dev/null +++ b/src/main/resources/db/migration/20241011221730514__add_dhis2_integration_rights.sql @@ -0,0 +1,7 @@ +INSERT INTO referencedata.rights (id, description, name, type) VALUES ('db1f5075-6894-4b2d-a4b2-efc4652f09d5', NULL, 'MANAGE_DHIS2_SUPERVISORY_NODES', 'SUPERVISION'); +INSERT INTO referencedata.rights (id, description, name, type) VALUES ('85abf93a-ea22-42a9-be7c-5baf64d757f9', NULL, 'MANAGE_DHIS2', 'GENERAL_ADMIN'); +INSERT INTO referencedata.rights (id, description, name, type) VALUES ('f37f5982-e36d-4712-9b7f-01c703df5fb5', NULL, 'MANAGE_DHIS2_PERIODS', 'GENERAL_ADMIN'); + +INSERT INTO referencedata.role_rights (roleid, rightid) VALUES ('a439c5de-b8aa-11e6-80f5-76304dec7eb7', 'db1f5075-6894-4b2d-a4b2-efc4652f09d5'); +INSERT INTO referencedata.role_rights (roleid, rightid) VALUES ('a439c5de-b8aa-11e6-80f5-76304dec7eb7', '85abf93a-ea22-42a9-be7c-5baf64d757f9'); +INSERT INTO referencedata.role_rights (roleid, rightid) VALUES ('a439c5de-b8aa-11e6-80f5-76304dec7eb7', 'f37f5982-e36d-4712-9b7f-01c703df5fb5'); \ No newline at end of file