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

core: security limit in menus
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 18:32:39 +0100
parents 9007bb133009
children 1fe00f0c9a91
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0050.py	Tue Feb 04 18:32:33 2014 +0100
+++ b/src/plugins/plugin_xep_0050.py	Tue Feb 04 18:32:39 2014 +0100
@@ -212,7 +212,7 @@
                               method=self._requestCommandsList,
                               async=True)
         self.__requesting_id = host.registerCallback(self._requestingEntity, with_data=True)
-        host.importMenu((D_("Service"), D_("commands")), self._commandsMenu, help_string=D_("Execute ad-hoc commands"))
+        host.importMenu((D_("Service"), D_("commands")), self._commandsMenu, security_limit=4, help_string=D_("Execute ad-hoc commands"))
 
     def getHandler(self, profile):
         return XEP_0050_handler(self)