Browse Source

HUE-126. get_current_users can get into a bad state

Alex Newman 15 years ago
parent
commit
9d4170bbc9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/auth/views.py

+ 1 - 1
desktop/core/src/desktop/auth/views.py

@@ -70,9 +70,9 @@ def get_current_users():
     if uid is not None:
       try:
         userobj = User.objects.get(pk=uid)
+        current_users[userobj] = last_access_map.get(userobj.username, { })
       except User.DoesNotExist:
         LOG.debug("User with id=%d does not exist" % uid)
-      current_users[userobj] = last_access_map.get(userobj.username, { })
 
   return current_users