# HG changeset patch # User Mads Kiilerich # Date 1470313416 -7200 # Node ID 10cda248d6f5a8e7697294f5f5e7ab1e1e0af465 # Parent 062aa22363a11270b7b54ae83effa642d8806c7b routing: use POST to 'edit_repo_group_perms_update' instead of PUT diff -r 062aa22363a1 -r 10cda248d6f5 kallithea/config/routing.py --- a/kallithea/config/routing.py Thu Aug 04 14:23:36 2016 +0200 +++ b/kallithea/config/routing.py Thu Aug 04 14:23:36 2016 +0200 @@ -154,9 +154,9 @@ 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 -r 062aa22363a1 -r 10cda248d6f5 kallithea/templates/admin/repo_groups/repo_group_edit_perms.html --- a/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html Thu Aug 04 14:23:36 2016 +0200 +++ b/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html Thu Aug 04 14:23:36 2016 +0200 @@ -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))}