shrug
This commit is contained in:
@@ -34,7 +34,7 @@ def get_current_user():
|
||||
if current_user.is_authenticated:
|
||||
return jsonify(current_user.to_dict())
|
||||
else:
|
||||
return jsonify({"username": "NONE", "authenticated": False})
|
||||
return jsonify({"username": "NONE", "is_admin": "false", "authenticated": False})
|
||||
return "Unauthd", 403
|
||||
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ def create_table():
|
||||
@tables.route("/tables/<table_id>")
|
||||
def get_table(table_id):
|
||||
table = GameTable.query.get_or_404(table_id)
|
||||
current_app.logger.info(table)
|
||||
return jsonify(table.to_dict())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user