add config check

This commit is contained in:
Xavier horwood 2022-07-04 22:30:36 +10:00 committed by GitHub
parent 5310de4447
commit 178fc6dfde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1319,6 +1319,8 @@ def clear_cookies():
@app.route('/config')
def config():
if not get_setting('security.config_page'):
flask.abort(403)
"""Return configuration in JSON format."""
_engines = []
for name, engine in engines.items():