Disallow change optional limit on public proxy (#813)
This commit is contained in:
parent
d411d4d398
commit
4f1fc06984
1 changed files with 6 additions and 0 deletions
|
@ -182,6 +182,12 @@ class UiWebsocketPlugin(object):
|
||||||
else:
|
else:
|
||||||
return super(UiWebsocketPlugin, self).actionSiteClone(to, *args, **kwargs)
|
return super(UiWebsocketPlugin, self).actionSiteClone(to, *args, **kwargs)
|
||||||
|
|
||||||
|
def actionOptionalLimitSet(self, to, *args, **kwargs):
|
||||||
|
if not config.multiuser_local:
|
||||||
|
self.cmd("notification", ["info", "This function is disabled on this proxy"])
|
||||||
|
else:
|
||||||
|
return super(UiWebsocketPlugin, self).actionSiteClone(to, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
@PluginManager.registerTo("ConfigPlugin")
|
@PluginManager.registerTo("ConfigPlugin")
|
||||||
class ConfigPlugin(object):
|
class ConfigPlugin(object):
|
||||||
|
|
Loading…
Reference in a new issue