mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 12:54:29 -04:00
Update Authenticate.php
FIX Apache users https://github.com/invoiceninja/invoiceninja/issues/1584
This commit is contained in:
parent
89bb0bd23f
commit
95f01166cf
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user