Modif route API /user/<int:uid>/edit. Fix #472
This commit is contained in:
parent
9940e6f01d
commit
e899cd0d16
@ -124,8 +124,8 @@ def user_create():
|
|||||||
return jsonify(user.to_dict())
|
return jsonify(user.to_dict())
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/user/edit/<int:uid>", methods=["POST"])
|
@bp.route("/user/<int:uid>/edit", methods=["POST"])
|
||||||
@api_web_bp.route("/user/edit/<int:uid>", methods=["POST"])
|
@api_web_bp.route("/user/<int:uid>/edit", methods=["POST"])
|
||||||
@login_required
|
@login_required
|
||||||
@scodoc
|
@scodoc
|
||||||
@permission_required(Permission.ScoUsersAdmin)
|
@permission_required(Permission.ScoUsersAdmin)
|
||||||
|
@ -94,7 +94,7 @@ def test_edit_users(api_admin_headers):
|
|||||||
def test_roles(api_admin_headers):
|
def test_roles(api_admin_headers):
|
||||||
"""
|
"""
|
||||||
Routes: /user/create
|
Routes: /user/create
|
||||||
/user/edit/<int:uid>
|
/user/<int:uid>/edit
|
||||||
"""
|
"""
|
||||||
admin_h = api_admin_headers
|
admin_h = api_admin_headers
|
||||||
user = POST_JSON(
|
user = POST_JSON(
|
||||||
|
Loading…
Reference in New Issue
Block a user