Rev881, Restrict serverShutdown to admin sites, Avoid redirect cache when clicking trayicon

This commit is contained in:
HelloZeroNet 2016-02-02 20:09:01 +01:00
parent 687a848292
commit c11d4f2632
4 changed files with 5 additions and 5 deletions

View file

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

View file

@ -154,7 +154,7 @@ class UiWebsocket(object):
admin_commands = (
"sitePause", "siteResume", "siteDelete", "siteList", "siteSetLimit", "siteClone",
"channelJoinAllsite", "serverUpdate", "serverPortcheck", "certSet", "configSet"
"channelJoinAllsite", "serverUpdate", "serverPortcheck", "serverShutdown", "certSet", "configSet"
)
if cmd == "response": # It's a response to a command