# HG changeset patch # User Mads Kiilerich # Date 2016-08-04 14:23:36 # Node ID 10cda248d6f5a8e7697294f5f5e7ab1e1e0af465 # Parent 062aa22363a11270b7b54ae83effa642d8806c7b routing: use POST to 'edit_repo_group_perms_update' instead of PUT diff --git a/kallithea/config/routing.py b/kallithea/config/routing.py --- a/kallithea/config/routing.py +++ b/kallithea/config/routing.py @@ -154,9 +154,9 @@ def make_map(config): m.connect("edit_repo_group_perms", "/repo_groups/{group_name:.*?}/edit/permissions", action="edit_repo_group_perms", conditions=dict(method=["GET"], function=check_group)) - m.connect("edit_repo_group_perms", "/repo_groups/{group_name:.*?}/edit/permissions", + m.connect("edit_repo_group_perms_update", "/repo_groups/{group_name:.*?}/edit/permissions", action="update_perms", - conditions=dict(method=["PUT"], function=check_group)) + conditions=dict(method=["POST"], function=check_group)) m.connect("edit_repo_group_perms_delete", "/repo_groups/{group_name:.*?}/edit/permissions/delete", action="delete_perms", conditions=dict(method=["POST"], function=check_group)) diff --git a/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html b/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html --- a/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html +++ b/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html @@ -1,4 +1,4 @@ -${h.form(url('edit_repo_group_perms', group_name=c.repo_group.group_name),method='put')} +${h.form(url('edit_repo_group_perms', group_name=c.repo_group.group_name))}