1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fixes for invitation resolution

This commit is contained in:
David Bomba 2023-08-17 10:57:25 +10:00
parent 820ca43020
commit 4586d9ddf5

View File

@ -30,7 +30,8 @@ class CreditController extends Controller
{
set_time_limit(0);
$invitation = $credit->invitations()->where('client_contact_id', auth()->user()->id)->first();
// $invitation = $credit->invitations()->where('client_contact_id', auth()->user()->id)->first();
$invitation = $credit->invitations()->where('client_contact_id', auth()->guard('contact')->user()->id)->first();
$data = [
'credit' => $credit,