From 007a93f85c470350aabbd85d5820502e8f7cc324 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 8 Nov 2015 00:09:46 +0100 Subject: [PATCH] =?UTF-8?q?fix=201=20of=20=E2=88=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _sakura/components/Users.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_sakura/components/Users.php b/_sakura/components/Users.php index e55b7fc..85c3346 100755 --- a/_sakura/components/Users.php +++ b/_sakura/components/Users.php @@ -173,12 +173,12 @@ class Users } // 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']]; } // Create a new session - $session = new Session($user['user_id']); + $session = new Session($user->id()); // Generate a session key $sessionKey = $session->create($remember);