# HG changeset patch # User Mads Kiilerich # Date 1470313416 -7200 # Node ID 4fde4ce6a403f6eb6da080b02711e00e9a83d9e7 # Parent abd734dc37046885f1376e9b58561f9009e320b8 routing: use POST to 'edit_user_group_perms_update' instead of PUT diff -r abd734dc3704 -r 4fde4ce6a403 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 @@ -240,8 +240,8 @@ m.connect("edit_user_group_perms", "/user_groups/{id}/edit/perms", action="edit_perms", conditions=dict(method=["GET"])) - m.connect("edit_user_group_perms", "/user_groups/{id}/edit/perms", - action="update_perms", conditions=dict(method=["PUT"])) + m.connect("edit_user_group_perms_update", "/user_groups/{id}/edit/perms", + action="update_perms", conditions=dict(method=["POST"])) m.connect("edit_user_group_perms_delete", "/user_groups/{id}/edit/perms/delete", action="delete_perms", conditions=dict(method=["POST"])) diff -r abd734dc3704 -r 4fde4ce6a403 kallithea/templates/admin/user_groups/user_group_edit_perms.html --- a/kallithea/templates/admin/user_groups/user_group_edit_perms.html Thu Aug 04 14:23:36 2016 +0200 +++ b/kallithea/templates/admin/user_groups/user_group_edit_perms.html Thu Aug 04 14:23:36 2016 +0200 @@ -1,4 +1,4 @@ -${h.form(url('edit_user_group_perms', id=c.user_group.users_group_id),method='put')} +${h.form(url('edit_user_group_perms_update', id=c.user_group.users_group_id))}