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): ...@@ -73,9 +73,7 @@ class AuthorizationPrincipalManager(DmObjectManager, Singleton):
# First try cache. # First try cache.
#self.logger.debug('Trying username %s from the cache' % username) #self.logger.debug('Trying username %s from the cache' % username)
principal = None principal = None
principalTuple = self.objectCache.get(username) principal = self.objectCache.get(username)
if principalTuple is not None:
(id, principal, updateTime, expirationTime) = principalTuple
if principal is None: if principal is None:
# Try principal retriever # Try principal retriever
principal = self.principalRetriever.getAuthorizationPrincipal(username) 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