Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
S0yKaf authored Dec 14, 2017
1 parent fd63f2a commit 20b6d36
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions myblt.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ def get_hash(password, salt):

def get_admin_status():
token = request.cookies.get('token')
print(token)
user = User.query.filter(User.token == token).first()
print(user.is_admin)
if not token or not user.is_admin:
return jsonify({'error': 'Unauthorized'}), 403

Expand Down Expand Up @@ -215,7 +213,6 @@ def get_upload(short_url):
def get_uploads():

err = get_admin_status()
print(err)
if err:
return err

Expand Down

0 comments on commit 20b6d36

Please sign in to comment.