more doc

parent 4e865020
......@@ -32,6 +32,6 @@ class ClientSettings(Resource):
def get(self, server=None, client=None):
# Only the admin can edit the configuration
if bui.acl_handler and not bui.acl_handler.acl.is_admin(current_user.name):
abort(403)
abort(403, message='Sorry, you don\'t have rights to access the setting panel')
r = bui.cli.read_conf_cli(client, server)
return jsonify(results=r)
......@@ -189,8 +189,15 @@ class Burp(BUIbackend, BUIlogging):
def status(self, query='\n', agent=None):
"""
status connects to the burp status port, ask the given 'question' and
parses the output in an array
Send queries to the Burp server
:param query: Query to send to the server
:type query: str
:param agent: What server to ask (only in multi-agent mode)
:type agent: str
:returns: The output returned by the server parsed as an array
"""
r = []
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment