Merge pull request #1586 from PeopleInside/patch-3

Update Authenticate.php
This commit is contained in:
Hillel Coren 2017-07-25 16:21:43 +03:00 committed by GitHub
commit 2e0ea45bed

View File

@ -68,7 +68,7 @@ class Authenticate
}
$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
$authenticated = true;
}