Re-inserted auth requirements

pull/3/head
Davide Bongiovanni 6 years ago
parent 55033f7295
commit 597898885b

@ -276,7 +276,7 @@ def alter(partID):
return '{"status":"ok", "part_id" : ' + str(new_id) + '}'
@app.route('/parts/delete/<partID>')
# @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/<locationID>')
# @requires_auth
@requires_auth
def deleteLocation(locationID):
if int(locationID) < 0:
abort(400)

Loading…
Cancel
Save