mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
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…
x
Reference in New Issue
Block a user