give users access to error events if they have access to start a process model w/ burnettk

This commit is contained in:
jasquat 2023-04-24 15:37:17 -04:00
parent 129b7479b4
commit 7fb5c82bbc
2 changed files with 8 additions and 0 deletions

View File

@ -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:

View File

@ -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);
}
};