Ensure archived invoices are viewable
This commit is contained in:
parent
5a6445f808
commit
c49f5fb52c
|
|
@ -70,7 +70,7 @@ class Authenticate {
|
|||
}
|
||||
|
||||
protected function getInvitation($key){
|
||||
$invitation = Invitation::where('invitation_key', '=', $key)->first();
|
||||
$invitation = Invitation::withTrashed()->where('invitation_key', '=', $key)->first();
|
||||
if ($invitation && !$invitation->is_deleted) {
|
||||
return $invitation;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue