mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for billingportal purchase
This commit is contained in:
parent
f66a069cb3
commit
6100f9416b
@ -202,6 +202,12 @@ class BillingPortalPurchase extends Component
|
||||
elseif(strlen($this->subscription->promo_code) == 0 && $this->subscription->promo_discount > 0){
|
||||
$this->price = $this->subscription->promo_price;
|
||||
}
|
||||
|
||||
/* Leave this here, otherwise a logged in user will need to reauth... painfully */
|
||||
if(Auth::guard('contact')->check()){
|
||||
return $this->getPaymentMethods(auth()->guard('contact')->user());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user