Merge pull request #126 from zeronet-conservancy/fix_sidebar_err

fix error message due to disabling updater sites in sidebar
This commit is contained in:
caryoscelus 2022-07-17 16:52:13 +00:00 committed by GitHub
commit 716182a060
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"