mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-28 20:43:49 +03:00
Minor commit related to the last one (uniq roles/privileges)
This commit is contained in:
parent
699a0f756a
commit
eb23b1b1a5
|
@ -82,8 +82,8 @@ class Enumeration(GenericEnumeration):
|
|||
if isAdminFromPrivileges(roles):
|
||||
areAdmins.add(user)
|
||||
|
||||
if kb.data.cachedUsersRoles.has_key(user):
|
||||
kb.data.cachedUsersRoles[user].extend(roles)
|
||||
if user in kb.data.cachedUsersRoles:
|
||||
kb.data.cachedUsersRoles[user] = list(roles.union(kb.data.cachedUsersRoles[user]))
|
||||
else:
|
||||
kb.data.cachedUsersRoles[user] = list(roles)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user