Commit 138fe792 authored by okhin's avatar okhin 🚴

Misplaced the damn ,

parent 46749f3c
Pipeline #783 passed with stage
in 2 seconds
......@@ -504,7 +504,7 @@ def static_files(filepath):
@authenticated
def little_admin(db):
# We need to check if we're admin
requests = db.execute('SELECT admin FROM users WHERE api = ?', (request.params['api']),);
requests = db.execute('SELECT admin FROM users WHERE api = ?', (request.params['api'],));
admin = admin.fetchall()
if admin[0] is not True:
abort(403, "You need to have an admin access")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment