Mercurial > kallithea
changeset 6101:e423ed080057
routing: use POST to 'edit_repo_perms_update' instead of PUT
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 04 Aug 2016 14:23:36 +0200 |
parents | 33d6f7a46bf4 |
children | 71ddb9aafafa |
files | kallithea/config/routing.py kallithea/templates/admin/repos/repo_edit_permissions.html |
diffstat | 2 files changed, 2 insertions(+), 2 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 @@ -540,7 +540,7 @@ conditions=dict(method=["GET"], function=check_repo)) rmap.connect("edit_repo_perms_update", "/{repo_name:.*?}/settings/permissions", controller='admin/repos', action="edit_permissions_update", - conditions=dict(method=["PUT"], function=check_repo)) + conditions=dict(method=["POST"], function=check_repo)) rmap.connect("edit_repo_perms_revoke", "/{repo_name:.*?}/settings/permissions/delete", controller='admin/repos', action="edit_permissions_revoke", conditions=dict(method=["POST"], function=check_repo))
--- a/kallithea/templates/admin/repos/repo_edit_permissions.html Thu Aug 04 14:23:36 2016 +0200 +++ b/kallithea/templates/admin/repos/repo_edit_permissions.html Thu Aug 04 14:23:36 2016 +0200 @@ -1,4 +1,4 @@ -${h.form(url('edit_repo_perms_update', repo_name=c.repo_name), method='put')} +${h.form(url('edit_repo_perms_update', repo_name=c.repo_name))} <div class="form"> <div class="fields"> <div class="field">