mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-15 06:05:58 -06:00
fix: the acl engine was filtering too much data when the auth was disabled
This commit is contained in:
parent
4fbffa839a
commit
46fad14e32
1 changed files with 8 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ class BUIMask(object):
|
|||
return [server for client, server in hidden if not client]
|
||||
|
||||
def is_client_allowed(self, current_user, client=None, server=None):
|
||||
if self.app.auth == "none":
|
||||
return True
|
||||
if current_user.is_anonymous:
|
||||
return False
|
||||
if self.has_filters(current_user) and self.is_user_pref:
|
||||
|
|
@ -68,6 +70,8 @@ class BUIMask(object):
|
|||
return current_user.acl.is_client_allowed(client, server)
|
||||
|
||||
def is_client_rw(self, current_user, client, server=None):
|
||||
if self.app.auth == "none":
|
||||
return True
|
||||
if current_user.is_anonymous:
|
||||
return False
|
||||
if self.has_filters(current_user) and self.is_user_pref:
|
||||
|
|
@ -79,6 +83,8 @@ class BUIMask(object):
|
|||
return current_user.acl.is_client_rw(client, server)
|
||||
|
||||
def is_server_allowed(self, current_user, server):
|
||||
if self.app.auth == "none":
|
||||
return True
|
||||
if current_user.is_anonymous:
|
||||
return False
|
||||
if self.has_filters(current_user) and self.is_user_pref:
|
||||
|
|
@ -90,6 +96,8 @@ class BUIMask(object):
|
|||
return current_user.acl.is_server_allowed(server)
|
||||
|
||||
def is_server_rw(self, current_user, server):
|
||||
if self.app.auth == "none":
|
||||
return True
|
||||
if current_user.is_anonymous:
|
||||
return False
|
||||
if self.has_filters(current_user) and self.is_user_pref:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue