Rev932, Skip news event from future, Disable siteSetOwned and setAutodownloadoptional when multiuser plugin enabled, Fix sidebar double click handlers, Log peer sent commands, Send modification to less peer if have enought peers, Close peers if more than 10 per site
This commit is contained in:
parent
5b821c46e5
commit
3f6f273fb1
7 changed files with 78 additions and 28 deletions
|
@ -492,12 +492,22 @@ class UiWebsocketPlugin(object):
|
|||
|
||||
def actionSiteSetOwned(self, to, owned):
|
||||
permissions = self.getPermissions(to)
|
||||
|
||||
if "Multiuser" in PluginManager.plugin_manager.plugin_names:
|
||||
self.cmd("notification", ["info", "This function is disabled on this proxy"])
|
||||
return False
|
||||
|
||||
if "ADMIN" not in permissions:
|
||||
return self.response(to, "You don't have permission to run this command")
|
||||
self.site.settings["own"] = bool(owned)
|
||||
|
||||
def actionSiteSetAutodownloadoptional(self, to, owned):
|
||||
permissions = self.getPermissions(to)
|
||||
|
||||
if "Multiuser" in PluginManager.plugin_manager.plugin_names:
|
||||
self.cmd("notification", ["info", "This function is disabled on this proxy"])
|
||||
return False
|
||||
|
||||
if "ADMIN" not in permissions:
|
||||
return self.response(to, "You don't have permission to run this command")
|
||||
self.site.settings["autodownloadoptional"] = bool(owned)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue