Fix reset file server port with config web interface

This commit is contained in:
shortcutme 2020-06-30 17:04:09 +02:00
parent 635c3b27cd
commit ddbd5c7b19
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
5 changed files with 33 additions and 12 deletions

View file

@ -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