comparison 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
comparison
equal deleted inserted replaced
808:d035c662b357 809:743b757777d3
51 method=self._searchRequest, 51 method=self._searchRequest,
52 async=True) 52 async=True)
53 self._sessions = Sessions() 53 self._sessions = Sessions()
54 self.__menu_cb_id = host.registerCallback(self._menuCb, with_data=True) 54 self.__menu_cb_id = host.registerCallback(self._menuCb, with_data=True)
55 self.__search_request_id = host.registerCallback(self._xmluiSearchRequest, with_data=True) 55 self.__search_request_id = host.registerCallback(self._xmluiSearchRequest, with_data=True)
56 host.importMenu((D_("Communication"), D_("Search directory")), self._searchMenu, help_string=D_("Search use directory")) 56 host.importMenu((D_("Communication"), D_("Search directory")), self._searchMenu, security_limit=1, help_string=D_("Search use directory"))
57 57
58 def _menuCb(self, data, profile): 58 def _menuCb(self, data, profile):
59 entity = jid.JID(data[xml_tools.SAT_FORM_PREFIX+'jid']) 59 entity = jid.JID(data[xml_tools.SAT_FORM_PREFIX+'jid'])
60 d = self.getSearchUI(entity, profile) 60 d = self.getSearchUI(entity, profile)
61 def gotXMLUI(xmlui): 61 def gotXMLUI(xmlui):