allow getting the token while on staging as well w/ burnettk

This commit is contained in:
jasquat 2022-06-06 12:25:52 -04:00
parent 49524e6fcd
commit f0310226a2
1 changed files with 1 additions and 1 deletions

View File

@ -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()