add publish permissions to process model for breadcrumb, not overwrite (#1633)

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
jasquat 2024-05-29 19:01:28 +00:00 committed by GitHub
parent a6a0d35b08
commit 5db0feb32e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ def process_model_show(modified_process_model_identifier: str, include_file_refe
# if the user got here then they can read the process model
available_actions = {"read": {"path": f"/process-models/{modified_process_model_identifier}", "method": "GET"}}
if GitService.check_for_publish_configs(raise_on_missing=False):
available_actions = {"publish": {"path": f"/process-model-publish/{modified_process_model_identifier}", "method": "POST"}}
available_actions["publish"] = {"path": f"/process-model-publish/{modified_process_model_identifier}", "method": "POST"}
process_model.actions = available_actions
return make_response(jsonify(process_model), 200)