From 5b7a4c10e2c8d664b28139233cb9f98d45baa40d Mon Sep 17 00:00:00 2001 From: burnettk Date: Mon, 19 Jun 2023 08:19:23 -0400 Subject: [PATCH] Revert "minor permissions related fixes for the new ui." This reverts commit 284d12e32cf76da7e42671065ba87300c13d6307. --- .../src/hooks/UriListForPermissions.tsx | 1 - .../src/routes/ProcessInstanceShow.tsx | 11 +++-------- .../src/routes/ProcessModelShow.tsx | 8 ++------ 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/spiffworkflow-frontend/src/hooks/UriListForPermissions.tsx b/spiffworkflow-frontend/src/hooks/UriListForPermissions.tsx index ed9446c6..c22ba738 100644 --- a/spiffworkflow-frontend/src/hooks/UriListForPermissions.tsx +++ b/spiffworkflow-frontend/src/hooks/UriListForPermissions.tsx @@ -14,7 +14,6 @@ export const useUriListForPermissions = () => { processInstanceCreatePath: `/v1.0/process-instances/${params.process_model_id}`, processInstanceErrorEventDetails: `/v1.0/event-error-details/${params.process_model_id}/${params.process_instance_id}`, processInstanceListPath: '/v1.0/process-instances', - processInstanceListForMePath: `/v1.0/process-instances/for-me`, processInstanceLogListPath: `/v1.0/logs/${params.process_model_id}/${params.process_instance_id}`, processInstanceReportListPath: '/v1.0/process-instances/reports', processInstanceResetPath: `/v1.0/process-instance-reset/${params.process_model_id}/${params.process_instance_id}`, diff --git a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx index 96edad90..61ba4bea 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx @@ -1041,13 +1041,6 @@ export default function ProcessInstanceShow({ variant }: OwnProps) { targetUris.messageInstanceListPath ); - const getMessageDisplay = () => { - if (canViewMsgs) { - return ; - } - return null; - }; - return ( @@ -1084,7 +1077,9 @@ export default function ProcessInstanceShow({ variant }: OwnProps) { processInstanceId={processInstance.id} /> - {getMessageDisplay()} + + + ); diff --git a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx index e30e3df9..8a423ce9 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx @@ -70,7 +70,7 @@ export default function ProcessModelShow() { [targetUris.processModelShowPath]: ['PUT', 'DELETE'], [targetUris.processModelTestsPath]: ['POST'], [targetUris.processModelPublishPath]: ['POST'], - [targetUris.processInstanceListForMePath]: ['POST'], + [targetUris.processInstanceListPath]: ['GET'], [targetUris.processInstanceCreatePath]: ['POST'], [targetUris.processModelFileCreatePath]: ['POST', 'PUT', 'GET', 'DELETE'], }; @@ -696,11 +696,7 @@ export default function ProcessModelShow() { {processModelFilesSection()} - + My Process Instances} filtersEnabled={false}