Update Authenticate.php

FIX Apache users
https://github.com/invoiceninja/invoiceninja/issues/1584
This commit is contained in:
Marco 2017-07-25 15:16:53 +02:00 committed by GitHub
parent 89bb0bd23f
commit 95f01166cf

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;
} }