mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-14 17:27:23 +01:00
Add Mail-in-a-Box version status check.
This commit is contained in:
committed by
Joshua Tauberer
parent
8c066764d9
commit
1a525df8ad
@@ -402,6 +402,24 @@ def backup_status():
|
||||
from backup import backup_status
|
||||
return json_response(backup_status(env))
|
||||
|
||||
@app.route('/system/privacy/enable', methods=["POST"])
|
||||
@authorized_personnel_only
|
||||
def privacy_status_enable():
|
||||
config = utils.load_settings()
|
||||
config["PRIVACY"] = 'True'
|
||||
utils.write_settings(config)
|
||||
|
||||
return "Ok"
|
||||
|
||||
@app.route('/system/privacy/disable', methods=["POST"])
|
||||
@authorized_personnel_only
|
||||
def privacy_status_disable():
|
||||
config = utils.load_settings()
|
||||
config["PRIVACY"] = 'False'
|
||||
utils.write_settings(config)
|
||||
|
||||
return "Ok"
|
||||
|
||||
# MUNIN
|
||||
|
||||
@app.route('/munin/')
|
||||
|
||||
Reference in New Issue
Block a user