Skip to content
Snippets Groups Projects
Commit 4fda5a2f authored by sveseli's avatar sveseli
Browse files

updated object cache method call

parent 467e54c4
No related branches found
No related tags found
No related merge requests found
......@@ -73,9 +73,7 @@ class AuthorizationPrincipalManager(DmObjectManager, Singleton):
# First try cache.
#self.logger.debug('Trying username %s from the cache' % username)
principal = None
principalTuple = self.objectCache.get(username)
if principalTuple is not None:
(id, principal, updateTime, expirationTime) = principalTuple
principal = self.objectCache.get(username)
if principal is None:
# Try principal retriever
principal = self.principalRetriever.getAuthorizationPrincipal(username)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment