Fix reset file server port with config web interface
This commit is contained in:
parent
635c3b27cd
commit
ddbd5c7b19
5 changed files with 33 additions and 12 deletions
|
@ -1194,6 +1194,8 @@ class UiWebsocket(object):
|
|||
@flag.no_multiuser
|
||||
def actionConfigSet(self, to, key, value):
|
||||
import main
|
||||
|
||||
self.log.debug("Changing config %s value to %r" % (key, value))
|
||||
if key not in config.keys_api_change_allowed:
|
||||
self.response(to, {"error": "Forbidden: You cannot set this config key"})
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue