core: security limit in menus
This commit is contained in:
parent
d5b255e437
commit
aad6251058
1 changed files with 8 additions and 5 deletions
|
|
@ -62,7 +62,7 @@ class XEP_0100(object):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue