allow getting the token while on staging as well w/ burnettk
This commit is contained in:
parent
49524e6fcd
commit
f0310226a2
|
@ -30,7 +30,7 @@ ALLOWED_BPMN_EXTENSIONS = {"bpmn", "dmn"}
|
|||
@admin_blueprint.route("/token", methods=["GET"])
|
||||
def token():
|
||||
"""Token."""
|
||||
if current_app.env != "development":
|
||||
if current_app.env == "production":
|
||||
return "Not authorized"
|
||||
|
||||
user = UserModel.query.first()
|
||||
|
|
Loading…
Reference in New Issue