diff src/plugins/plugin_xep_0100.py @ 1539:98f92a054539

plugins: lowered security limits for non dangerous actions. A reference documentation is in progress to choose values: http://wiki.goffi.org/wiki/Security_Limits/en
author Goffi <goffi@goffi.org>
date Tue, 29 Sep 2015 20:19:43 +0200
parents 3265a2639182
children 591e04f0103c
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0100.py	Tue Sep 29 19:07:32 2015 +0200
+++ b/src/plugins/plugin_xep_0100.py	Tue Sep 29 20:19:43 2015 +0200
@@ -63,7 +63,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, security_limit=2, help_string=D_("Find gateways"))
+        host.importMenu((D_("Service"), D_("gateways")), self._gatewaysMenu, security_limit=1, help_string=D_("Find gateways"))
 
     def _gatewaysMenu(self, data, profile):
         """ XMLUI activated by menu: return Gateways UI