Browse Source

HUE-3398 [beeswax] Filter out sessions with empty guid or secret key

krish 9 years ago
parent
commit
3173731001
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/beeswax/src/beeswax/models.py

+ 1 - 1
apps/beeswax/src/beeswax/models.py

@@ -388,7 +388,7 @@ class SessionManager(models.Manager):
 
   def get_session(self, user, application='beeswax', filter_open=True):
     try:
-      q = self.filter(owner=user, application=application)
+      q = self.filter(owner=user, application=application).exclude(guid='').exclude(secret='')
       if filter_open:
         q = q.filter(status_code=0)
       return q.latest("last_used")