mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +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):
|
if isAdminFromPrivileges(roles):
|
||||||
areAdmins.add(user)
|
areAdmins.add(user)
|
||||||
|
|
||||||
if kb.data.cachedUsersRoles.has_key(user):
|
if user in kb.data.cachedUsersRoles:
|
||||||
kb.data.cachedUsersRoles[user].extend(roles)
|
kb.data.cachedUsersRoles[user] = list(roles.union(kb.data.cachedUsersRoles[user]))
|
||||||
else:
|
else:
|
||||||
kb.data.cachedUsersRoles[user] = list(roles)
|
kb.data.cachedUsersRoles[user] = list(roles)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user