Skip to content

Instantly share code, notes, and snippets.

@sprice
Created January 21, 2012 03:37
Show Gist options
  • Save sprice/1651138 to your computer and use it in GitHub Desktop.
Save sprice/1651138 to your computer and use it in GitHub Desktop.
diff --git a/mongodb_session/mongodb_session.inc b/mongodb_session/mongodb_session.inc
index b574982..05e08f2 100644
--- a/mongodb_session/mongodb_session.inc
+++ b/mongodb_session/mongodb_session.inc
@@ -105,7 +105,7 @@ function _drupal_session_read($sid) {
// We found the client's session record and they are an authenticated,
// active user.
- if ($session && !empty($session['uid']) && $session['status'] == 1) {
+ if ($session && !empty($session['uid'])) {
$collection = mongodb_collection('fields_current', 'user');
$user = (object) $collection->findOne(array('_id' => $session['uid']));
// Copy from SQL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment