Return ok for site clone, Fix typo in comment
This commit is contained in:
parent
5af77449fa
commit
9590dce8a4
1 changed files with 2 additions and 1 deletions
|
@ -932,6 +932,7 @@ class UiWebsocket(object):
|
||||||
new_site.saveSettings()
|
new_site.saveSettings()
|
||||||
self.cmd("notification", ["done", _["Site cloned"] + "<script>window.top.location = '/%s'</script>" % new_address])
|
self.cmd("notification", ["done", _["Site cloned"] + "<script>window.top.location = '/%s'</script>" % new_address])
|
||||||
gevent.spawn(new_site.announce)
|
gevent.spawn(new_site.announce)
|
||||||
|
return "ok"
|
||||||
|
|
||||||
def actionSiteClone(self, to, address, root_inner_path="", target_address=None):
|
def actionSiteClone(self, to, address, root_inner_path="", target_address=None):
|
||||||
if not SiteManager.site_manager.isAddress(address):
|
if not SiteManager.site_manager.isAddress(address):
|
||||||
|
@ -939,7 +940,7 @@ class UiWebsocket(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
if not self.server.sites.get(address):
|
if not self.server.sites.get(address):
|
||||||
# Don't expose site existense
|
# Don't expose site existence
|
||||||
return
|
return
|
||||||
|
|
||||||
if "ADMIN" in self.getPermissions(to):
|
if "ADMIN" in self.getPermissions(to):
|
||||||
|
|
Loading…
Reference in a new issue