fix error message due to disabling updater sites in sidebar

This commit is contained in:
caryoscelus 2022-07-10 11:13:56 +00:00
parent 1d8aedce85
commit 1f305615a4

View file

@ -758,9 +758,6 @@ class UiWebsocketPlugin(object):
@flag.admin
@flag.no_multiuser
def actionSiteSetOwned(self, to, owned):
if self.site.address == config.updatesite:
return {"error": "You can't change the ownership of the updater site"}
self.site.settings["own"] = bool(owned)
self.site.updateWebsocket(owned=owned)
return "ok"