fix 1 of ∞

This commit is contained in:
flash 2015-11-08 00:09:46 +01:00
parent 2a642ce381
commit 007a93f85c

View file

@ -173,12 +173,12 @@ class Users
} }
// Check if the user has the required privs to log in // Check if the user has the required privs to log in
if (Permissions::check('SITE', 'DEACTIVATED', $user['user_id'], 1)) { if (Permissions::check('SITE', 'DEACTIVATED', $user->id(), 1)) {
return [0, 'NOT_ALLOWED', $user['user_id']]; return [0, 'NOT_ALLOWED', $user['user_id']];
} }
// Create a new session // Create a new session
$session = new Session($user['user_id']); $session = new Session($user->id());
// Generate a session key // Generate a session key
$sessionKey = $session->create($remember); $sessionKey = $session->create($remember);