Rev914, Disable siteDelete in Multiuser mode

This commit is contained in:
HelloZeroNet 2016-03-02 01:11:32 +01:00
parent 5b59da2435
commit 36d3268cf7
2 changed files with 4 additions and 1 deletions

View file

@ -171,6 +171,9 @@ class UiWebsocketPlugin(object):
self.actionUserLoginForm(0) self.actionUserLoginForm(0)
# Disable not Multiuser safe functions # Disable not Multiuser safe functions
def actionSiteDelete(self, to, *args, **kwargs):
self.cmd("notification", ["info", "This function is disabled on this proxy"])
def actionConfigSet(self, to, *args, **kwargs): def actionConfigSet(self, to, *args, **kwargs):
self.cmd("notification", ["info", "This function is disabled on this proxy"]) self.cmd("notification", ["info", "This function is disabled on this proxy"])

View file

@ -8,7 +8,7 @@ class Config(object):
def __init__(self, argv): def __init__(self, argv):
self.version = "0.3.6" self.version = "0.3.6"
self.rev = 912 self.rev = 914
self.argv = argv self.argv = argv
self.action = None self.action = None
self.config_file = "zeronet.conf" self.config_file = "zeronet.conf"