From 5db0feb32e620fc66c321b1aed4f2ec80d64b374 Mon Sep 17 00:00:00 2001 From: jasquat <2487833+jasquat@users.noreply.github.com> Date: Wed, 29 May 2024 19:01:28 +0000 Subject: [PATCH] add publish permissions to process model for breadcrumb, not overwrite (#1633) Co-authored-by: jasquat --- .../spiffworkflow_backend/routes/process_models_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_models_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_models_controller.py index 13a7b4b9..5a37ee0d 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_models_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_models_controller.py @@ -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)