Fix for impersonation

This commit is contained in:
Hillel Coren 2017-07-25 13:14:22 +03:00
parent 89bb0bd23f
commit 2da217fc2f

View File

@ -68,7 +68,7 @@ class Authenticate
} }
$account = $contact->account; $account = $contact->account;
if (Auth::guard('user')->check() && Auth::user('user')->account_id === $account->id) { if (Auth::guard('user')->check() && Auth::user('user')->account_id == $account->id) {
// This is an admin; let them pretend to be a client // This is an admin; let them pretend to be a client
$authenticated = true; $authenticated = true;
} }