mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
add config check
This commit is contained in:
parent
5310de4447
commit
178fc6dfde
1 changed files with 2 additions and 0 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue