Don't allow to take the ownership of the updater site with the API
This commit is contained in:
parent
e46cb2f240
commit
70292dac00
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue