Author: david
Date: Wed Oct  7 15:19:21 2009
New Revision: 3684

Log:
Sign out user if their userId is not linked to a valid QubitUser object.

Modified:
   trunk/apps/qubit/lib/myUser.class.php

Modified: trunk/apps/qubit/lib/myUser.class.php
==============================================================================
--- trunk/apps/qubit/lib/myUser.class.php       Wed Oct  7 14:53:32 2009        
(r3683)
+++ trunk/apps/qubit/lib/myUser.class.php       Wed Oct  7 15:19:21 2009        
(r3684)
@@ -29,6 +29,14 @@
     {
       $this->signOut();
     }
+
+    // If this user's account has been *deleted* or this user session is from a
+    // different install of qubit on the same server (cross-site), then signout
+    // user
+    if (null !== ($userId = $this->getAttribute('user_id')) && null === 
QubitUser::getById($userId))
+    {
+      $this->signOut();
+    }
   }
 
   public function signIn($user)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to