diff --git a/spiffworkflow-frontend/src/hooks/UriListForPermissions.tsx b/spiffworkflow-frontend/src/hooks/UriListForPermissions.tsx index c22ba738..ed9446c6 100644 --- a/spiffworkflow-frontend/src/hooks/UriListForPermissions.tsx +++ b/spiffworkflow-frontend/src/hooks/UriListForPermissions.tsx @@ -14,6 +14,7 @@ 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 61ba4bea..96edad90 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx @@ -1041,6 +1041,13 @@ export default function ProcessInstanceShow({ variant }: OwnProps) { targetUris.messageInstanceListPath ); + const getMessageDisplay = () => { + if (canViewMsgs) { + return ; + } + return null; + }; + return ( @@ -1077,9 +1084,7 @@ 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 8a423ce9..e30e3df9 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.processInstanceListPath]: ['GET'], + [targetUris.processInstanceListForMePath]: ['POST'], [targetUris.processInstanceCreatePath]: ['POST'], [targetUris.processModelFileCreatePath]: ['POST', 'PUT', 'GET', 'DELETE'], }; @@ -696,7 +696,11 @@ export default function ProcessModelShow() { {processModelFilesSection()} - + My Process Instances} filtersEnabled={false}