Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Angel Docampo
burp-ui
Commits
12818da8
Commit
12818da8
authored
Apr 12, 2017
by
Benjamin "Ziirish" SANS
Browse files
fix: some exceptions in multi-agent mode
parent
1f0b6856
Changes
2
Hide whitespace changes
Inline
Side-by-side
burpui/api/clients.py
View file @
12818da8
...
...
@@ -573,7 +573,10 @@ class AllClients(Resource):
grants
[
serv
]
=
'all'
for
(
serv
,
clients
)
in
iteritems
(
grants
):
if
not
isinstance
(
clients
,
list
):
clients
=
[
x
[
'name'
]
for
x
in
bui
.
client
.
get_all_clients
(
agent
=
serv
)]
try
:
clients
=
[
x
[
'name'
]
for
x
in
bui
.
client
.
get_all_clients
(
agent
=
serv
)]
except
BUIserverException
:
clients
=
[]
ret
+=
[{
'name'
:
x
,
'agent'
:
serv
}
for
x
in
clients
]
return
ret
burpui/api/misc.py
View file @
12818da8
...
...
@@ -213,7 +213,7 @@ class Live(Resource):
server
not
in
bui
.
acl
.
servers
(
self
.
username
)):
self
.
abort
(
403
,
'You are not allowed to view stats of this server'
)
if
server
:
l
=
bui
.
client
.
is_one_backup_running
(
server
)
[
server
]
l
=
bui
.
client
.
is_one_backup_running
(
server
)
# ACL
if
bui
.
acl
and
not
self
.
is_admin
:
allowed
=
bui
.
acl
.
clients
(
self
.
username
,
server
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment