diff src/plugins/plugin_xep_0100.py @ 809:743b757777d3

core: security limit in menus
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 18:32:39 +0100
parents be4c5e24dab9
children 1fe00f0c9a91
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0100.py	Tue Feb 04 18:32:33 2014 +0100
+++ b/src/plugins/plugin_xep_0100.py	Tue Feb 04 18:32:39 2014 +0100
@@ -62,7 +62,7 @@
         host.bridge.addMethod("gatewayRegister", ".plugin", in_sign='ss', out_sign='s', method=self._gatewayRegister)
         self.__menu_id = host.registerCallback(self._gatewaysMenu, with_data=True)
         self.__selected_id = host.registerCallback(self._gatewaySelectedCb, with_data=True)
-        host.importMenu((D_("Service"), D_("gateways")), self._gatewaysMenu, help_string=D_("Find gateways"))
+        host.importMenu((D_("Service"), D_("gateways")), self._gatewaysMenu, security_limit=2, help_string=D_("Find gateways"))
 
 
     def _gatewaysMenu(self, data, profile):