From 597898885b5f55631420ba2e23973bdd5b8820d2 Mon Sep 17 00:00:00 2001 From: Davide Bongiovanni Date: Tue, 13 Nov 2018 20:49:10 +0100 Subject: [PATCH] Re-inserted auth requirements --- parts/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/server.py b/parts/server.py index 41e44c3..8dc168d 100644 --- a/parts/server.py +++ b/parts/server.py @@ -276,7 +276,7 @@ def alter(partID): return '{"status":"ok", "part_id" : ' + str(new_id) + '}' @app.route('/parts/delete/') -# @requires_auth +@requires_auth def delete(partID): if int(partID) < 0: abort(400) @@ -285,7 +285,7 @@ def delete(partID): return '{"status":"ok"}' @app.route('/parts/deleteLocation/') -# @requires_auth +@requires_auth def deleteLocation(locationID): if int(locationID) < 0: abort(400)