Commit a6b7b710 authored by Tomáš Peterka's avatar Tomáš Peterka

[erp5_hal_json_style] Allow by default all "_jio" actions in Hateoas

parent 19c72d89
......@@ -753,8 +753,11 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
if (view == view_action['id']):
embedded_url = '%s' % view_action['url']
if erp5_action_key in (view_action_type, "view", "workflow", "object_new_content_action", "object_clone_action", "object_delete_action", "object_report_jio", "object_exchange_jio", "object_fast_input_jio", "object_search_jio", "object_action_jio"):
global_action_type = ("view", "workflow", "object_new_content_action",
"object_clone_action", "object_delete_action")
if (erp5_action_key == view_action_type or
erp5_action_key in global_action_type or
"_jio" in erp5_action_key):
erp5_action_list[-1]['href'] = url_template_dict["traverse_generator"] % {
"root_url": site_root.absolute_url(),
"script_id": script.id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment