Mercurial > kallithea
changeset 6107:4fde4ce6a403
routing: use POST to 'edit_user_group_perms_update' instead of PUT
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 04 Aug 2016 14:23:36 +0200 |
parents | abd734dc3704 |
children | 50e370c70f09 |
files | kallithea/config/routing.py kallithea/templates/admin/user_groups/user_group_edit_perms.html |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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"]))
--- 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))} <div class="form"> <div class="fields"> <div class="field">