diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/authorization_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/authorization_service.py index 871d8170..1969ce49 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/authorization_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/authorization_service.py @@ -541,6 +541,7 @@ class AuthorizationService: f"/process-instances/for-me/{process_related_path_segment}", f"/logs/{process_related_path_segment}", f"/process-data-file-download/{process_related_path_segment}", + f"/event-error-details/{process_related_path_segment}", ]: permissions_to_assign.append(PermissionToAssign(permission="read", target_uri=target_uri)) else: diff --git a/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx b/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx index 3b86785f..64910fd4 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx @@ -213,6 +213,13 @@ export default function ProcessInstanceLogList({ variant }: OwnProps) { setEventErrorDetails(errorObject); }, }); + } else { + const notAuthorized: ProcessInstanceEventErrorDetail = { + id: 0, + message: 'You are not authorized to view error details', + stacktrace: [], + }; + setEventErrorDetails(notAuthorized); } };