first
This commit is contained in:
parent
8e3e7e1d3d
commit
be13e954bd
6 changed files with 6 additions and 6 deletions
|
@ -92,7 +92,7 @@ def before_request():
|
|||
|
||||
if request.method.lower() != "get" and app.config["READ_ONLY"]: return {"error":f"{app.config['SITE_NAME']} is currently in read-only mode."}, 500
|
||||
|
||||
if app.config["BOT_DISABLE"] and request.headers.get("X-User-Type")=="Bot": abort(503)
|
||||
if app.config["BOT_DISABLE"] and request.headers.get("Authorization"): abort(503)
|
||||
|
||||
g.db = db_session()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue