Commit 74706482 authored by okhin's avatar okhin
Browse files

:is the new;

parent 5cc5771f
Pipeline #786 passed with stage
in 2 seconds
......@@ -506,7 +506,7 @@ def little_admin(db):
# We need to check if we're admin
admin = db.execute('SELECT admin FROM users WHERE api = ?', (request.params['api'],));
admin = admin.fetchall()
if admin[0] != 1;
if admin[0] != 1:
abort(403, "You need to have an admin access")
users = db.execute('SELECT api, token, admin FROM users').fetchall()
return template('index', users=users)
Supports Markdown
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