diff --git a/files/cache.py b/files/cache.py index f584289..d3216d9 100644 --- a/files/cache.py +++ b/files/cache.py @@ -42,7 +42,7 @@ def addGroups(self, username:str, matchedGroups:list): ''' if username in self.cache: self.logs.info({'message':'Adding groups to the cache.', 'username': username, 'matchedGroups': ','.join(matchedGroups)}) - self.cache[username]['matchedGroups'] = matchedGroups + self.cache[username]['matchedGroups'] = list(set(self.cache[username]['matchedGroups'] + matchedGroups)) def validateUser(self, username:str, password:str) -> bool: '''