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:
parent
cba199cd67
commit
59e032f883
@ -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));
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user