Ensure archived invoices are viewable

This commit is contained in:
Hillel Coren 2016-03-14 20:49:38 +02:00
parent 5a6445f808
commit c49f5fb52c

View File

@ -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;
}