mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for impersonation
This commit is contained in:
parent
89bb0bd23f
commit
2da217fc2f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user