Don't allow to take the ownership of the updater site with the API

This commit is contained in:
shortcutme 2018-09-30 21:56:36 +02:00
parent e46cb2f240
commit 70292dac00
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -712,6 +712,9 @@ class UiWebsocketPlugin(object):
if "ADMIN" not in permissions:
return self.response(to, "You don't have permission to run this command")
if self.site.address == config.updatesite:
return self.response(to, "You can't change the ownership of the updater site")
self.site.settings["own"] = bool(owned)
self.site.updateWebsocket(owned=owned)