diff --git a/plugins/dbms/oracle/enumeration.py b/plugins/dbms/oracle/enumeration.py index 6cc90e0c0..87a619cb0 100644 --- a/plugins/dbms/oracle/enumeration.py +++ b/plugins/dbms/oracle/enumeration.py @@ -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)