Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop

This commit is contained in:
David Bomba 2022-01-13 17:44:31 +11:00
commit d08aba3091
2 changed files with 5 additions and 1 deletions

View File

@ -87,6 +87,10 @@ class InvitationController extends Controller
if(!$invitation)
return abort(404,'The resource is no longer available.');
/* 12/01/2022 Clean up an edge case where if the contact is trashed, restore if a invitation comes back. */
if($invitation->contact->trashed())
$invitation->contact->restore();
/* Return early if we have the correct client_hash embedded */
$client_contact = $invitation->contact;

View File

@ -34,7 +34,7 @@ class CheckClientExistence
->where('email', auth('contact')->user()->email)
->whereNotNull('email')
->where('email', '<>', '')
->whereNull('deleted_at')
// ->whereNull('deleted_at')
->distinct('company_id')
->distinct('email')
->whereNotNull('company_id')