From a379d48dd178d6af9203da86143a917a72f2bae0 Mon Sep 17 00:00:00 2001 From: melinoix Date: Mon, 23 Sep 2024 10:15:46 +0200 Subject: [PATCH 1/4] Changing domain manager permissions --- backend/core/startup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/core/startup.py b/backend/core/startup.py index 8c2deb181..c4e157ad6 100644 --- a/backend/core/startup.py +++ b/backend/core/startup.py @@ -176,6 +176,9 @@ "view_user", "view_requirementmappingset", "view_requirementmapping", + "view_appliedcontrol", + "change_appliedcontrol", + "delete_appliedcontrol", ] ADMINISTRATOR_PERMISSIONS_LIST = [ From 8d74f12aa9a03b529e5352ec4b8535919bd36570 Mon Sep 17 00:00:00 2001 From: melinoix Date: Tue, 24 Sep 2024 10:54:35 +0200 Subject: [PATCH 2/4] corrected appliedcontrol to referencecontrol --- backend/core/startup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/core/startup.py b/backend/core/startup.py index c4e157ad6..b3834db59 100644 --- a/backend/core/startup.py +++ b/backend/core/startup.py @@ -176,9 +176,9 @@ "view_user", "view_requirementmappingset", "view_requirementmapping", - "view_appliedcontrol", - "change_appliedcontrol", - "delete_appliedcontrol", + "view_referencecontrol", + "change_referencecontrol", + "delete_referencecontrol", ] ADMINISTRATOR_PERMISSIONS_LIST = [ From e78f063ce2fafda0cb2957361ea48b005cb6908f Mon Sep 17 00:00:00 2001 From: melinoix Date: Tue, 24 Sep 2024 18:20:23 +0200 Subject: [PATCH 3/4] changing tests --- frontend/tests/utils/test-data.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/tests/utils/test-data.ts b/frontend/tests/utils/test-data.ts index 2d5725daf..903191b26 100644 --- a/frontend/tests/utils/test-data.ts +++ b/frontend/tests/utils/test-data.ts @@ -159,7 +159,10 @@ export default { 'view_requirementnode', 'view_framework', 'view_loadedlibrary', - 'view_user' + 'view_user', + 'view_referencecontrol', + 'change_referencecontrol', + 'delete_referencecontrol' ] }, approver: { From 996fee6d2d01e80d33dea8adcf3f813c83de717b Mon Sep 17 00:00:00 2001 From: eric-intuitem <71850047+eric-intuitem@users.noreply.github.com> Date: Sat, 28 Sep 2024 03:25:05 +0200 Subject: [PATCH 4/4] avoid redundant declaration --- backend/core/startup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/core/startup.py b/backend/core/startup.py index b3834db59..8e75a9566 100644 --- a/backend/core/startup.py +++ b/backend/core/startup.py @@ -153,6 +153,8 @@ "change_threat", "delete_threat", "view_referencecontrol", + "change_referencecontrol", + "delete_referencecontrol", "view_folder", "change_folder", "add_riskmatrix", @@ -176,9 +178,6 @@ "view_user", "view_requirementmappingset", "view_requirementmapping", - "view_referencecontrol", - "change_referencecontrol", - "delete_referencecontrol", ] ADMINISTRATOR_PERMISSIONS_LIST = [