From 61a55c888889a1ec3376a7a3bba230dc15a378a4 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 30 Jan 2019 20:59:25 -0800 Subject: Check if user role has changed while the session is open --- app/Auth/DatabaseAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Auth/DatabaseAuth.php') diff --git a/app/Auth/DatabaseAuth.php b/app/Auth/DatabaseAuth.php index 84a1e019..1982f576 100644 --- a/app/Auth/DatabaseAuth.php +++ b/app/Auth/DatabaseAuth.php @@ -84,7 +84,7 @@ class DatabaseAuth extends Base implements PasswordAuthenticationProviderInterfa */ public function isValidSession() { - return $this->userModel->isActive($this->userSession->getId()); + return $this->userModel->isValidSession($this->userSession->getId(), $this->userSession->getRole()); } /** -- cgit v1.2.3