fix: require login when marking a whole tree as legitimate

pull/87/head
Raphaël Vinot 2020-09-15 01:38:20 +02:00
parent 99da54f66a
commit 09a4ccd62e
1 changed files with 1 additions and 0 deletions

View File

@ -502,6 +502,7 @@ def body_hash_details(body_hash: str):
@app.route('/tree/<string:tree_uuid>/mark_as_legitimate', methods=['POST'])
@auth.login_required
def mark_as_legitimate(tree_uuid: str):
if request.data:
legitimate_entries = request.get_json(force=True)