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

Handle user not present in completePurchase method of subscriptions

This commit is contained in:
David Bomba 2022-04-06 14:52:07 +10:00
parent cba199cd67
commit 59e032f883

View File

@ -121,7 +121,10 @@ class SubscriptionService
//execute any webhooks
$this->triggerWebhook($context);
$this->handleRedirect('/client/invoices/'.$this->encodePrimaryKey($payment_hash->fee_invoice_id));
/* 06-04-2022 */
/* We may not be in a state where the user is present */
if(auth()->guard('contact'))
$this->handleRedirect('/client/invoices/'.$this->encodePrimaryKey($payment_hash->fee_invoice_id));
}
}