From 99547fea7d1c733a0ec7d4c6fcab0c7e0a28ca6e Mon Sep 17 00:00:00 2001 From: jasquat Date: Mon, 1 May 2023 16:14:38 -0400 Subject: [PATCH] added report-metadata endpoint to BASIC permissions w/ burnettk --- .../src/spiffworkflow_backend/services/authorization_service.py | 1 + .../spiffworkflow_backend/unit/test_authorization_service.py | 1 + 2 files changed, 2 insertions(+) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/authorization_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/authorization_service.py index eb2478a56..fea16adf4 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/authorization_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/authorization_service.py @@ -572,6 +572,7 @@ class AuthorizationService: """Set_basic_permissions.""" permissions_to_assign: list[PermissionToAssign] = [] permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/process-instances/for-me")) + permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/process-instances/report-metadata")) permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/processes")) permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/processes/callers")) permissions_to_assign.append(PermissionToAssign(permission="read", target_uri="/service-tasks")) diff --git a/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_authorization_service.py b/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_authorization_service.py index d0c3a5014..dbdf50a8b 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_authorization_service.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_authorization_service.py @@ -291,6 +291,7 @@ class TestAuthorizationService(BaseTest): expected_permissions = [ ("/process-instances/find-by-id/*", "read"), ("/process-instances/for-me", "read"), + ("/process-instances/report-metadata", "read"), ("/process-instances/reports/*", "create"), ("/process-instances/reports/*", "delete"), ("/process-instances/reports/*", "read"),