give users access to error events if they have access to start a process model w/ burnettk
This commit is contained in:
parent
129b7479b4
commit
7fb5c82bbc
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue