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
This commit is contained in:
parent
48f13ae31e
commit
07e8942ba9
1 changed files with 3 additions and 3 deletions
|
|
@ -219,7 +219,7 @@ class XEP_0050(object):
|
|||
method=self._requestCommandsList,
|
||||
async=True)
|
||||
self.__requesting_id = host.registerCallback(self._requestingEntity, with_data=True)
|
||||
host.importMenu((D_("Service"), D_("commands")), self._commandsMenu, security_limit=4, help_string=D_("Execute ad-hoc commands"))
|
||||
host.importMenu((D_("Service"), D_("commands")), self._commandsMenu, security_limit=2, help_string=D_("Execute ad-hoc commands"))
|
||||
|
||||
def getHandler(self, profile):
|
||||
return XEP_0050_handler(self)
|
||||
|
|
@ -401,7 +401,7 @@ class XEP_0050(object):
|
|||
form_ui.addText(_("Please enter target jid"), 'instructions')
|
||||
form_ui.changeContainer("pairs")
|
||||
form_ui.addLabel("jid")
|
||||
jid = form_ui.addString("jid", value=self.host.getClient(profile).jid.host)
|
||||
form_ui.addString("jid", value=self.host.getClient(profile).jid.host)
|
||||
return {'xmlui': form_ui.toXml()}
|
||||
|
||||
def _statusCallback(self, command_elt, session_data, action, node, profile):
|
||||
|
|
|
|||
Loading…
Reference in a new issue