Restrict db reload in Multiuser mode
This commit is contained in:
parent
84fb82a574
commit
7839cf4f90
1 changed files with 4 additions and 0 deletions
|
@ -600,6 +600,10 @@ class UiWebsocketPlugin(object):
|
||||||
if "ADMIN" not in permissions:
|
if "ADMIN" not in permissions:
|
||||||
return self.response(to, "You don't have permission to run this command")
|
return self.response(to, "You don't have permission to run this command")
|
||||||
|
|
||||||
|
if "Multiuser" in PluginManager.plugin_manager.plugin_names:
|
||||||
|
self.cmd("notification", ["info", _["This function is disabled on this proxy"]])
|
||||||
|
return False
|
||||||
|
|
||||||
self.site.storage.closeDb()
|
self.site.storage.closeDb()
|
||||||
self.site.storage.getDb()
|
self.site.storage.getDb()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue