Skip to content

Commit 4f1fc06

Browse files
jerry-wolfHelloZeroNet
authored andcommitted
Disallow change optional limit on public proxy (#813)
1 parent d411d4d commit 4f1fc06

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/disabled-Multiuser/MultiuserPlugin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ def actionSiteClone(self, to, *args, **kwargs):
182182
else:
183183
return super(UiWebsocketPlugin, self).actionSiteClone(to, *args, **kwargs)
184184

185+
def actionOptionalLimitSet(self, to, *args, **kwargs):
186+
if not config.multiuser_local:
187+
self.cmd("notification", ["info", "This function is disabled on this proxy"])
188+
else:
189+
return super(UiWebsocketPlugin, self).actionSiteClone(to, *args, **kwargs)
190+
185191

186192
@PluginManager.registerTo("ConfigPlugin")
187193
class ConfigPlugin(object):

0 commit comments

Comments
 (0)