1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Minor fixes

This commit is contained in:
David Bomba 2022-08-01 04:53:39 +10:00
parent b38b0e4517
commit 2ac46b7392

View File

@ -84,7 +84,7 @@ class InvitationController extends Controller
->with($entity)
->where('key', $invitation_key)
->with('contact.client')
->first();
->firstOrFail();
if($invitation->{$entity}->is_deleted)
return $this->render('generic.not_available', ['account' => $invitation->company->account, 'company' => $invitation->company]);