diff src/plugins/plugin_xep_0055.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_0055.py	Tue Feb 04 18:32:33 2014 +0100
+++ b/src/plugins/plugin_xep_0055.py	Tue Feb 04 18:32:39 2014 +0100
@@ -53,7 +53,7 @@
         self._sessions = Sessions()
         self.__menu_cb_id = host.registerCallback(self._menuCb, with_data=True)
         self.__search_request_id = host.registerCallback(self._xmluiSearchRequest, with_data=True)
-        host.importMenu((D_("Communication"), D_("Search directory")), self._searchMenu, help_string=D_("Search use directory"))
+        host.importMenu((D_("Communication"), D_("Search directory")), self._searchMenu, security_limit=1, help_string=D_("Search use directory"))
 
     def _menuCb(self, data, profile):
         entity = jid.JID(data[xml_tools.SAT_FORM_PREFIX+'jid'])