mirror of
https://github.com/bitwarden/server.git
synced 2025-05-28 23:04:50 -05:00
no additional storage for premium
This commit is contained in:
parent
b39d1e13d7
commit
bed2a0ab7b
@ -692,6 +692,12 @@ namespace Bit.Core.Services
|
|||||||
throw new BadRequestException("You can't subtract storage!");
|
throw new BadRequestException("You can't subtract storage!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if((paymentMethodType == PaymentMethodType.GoogleInApp ||
|
||||||
|
paymentMethodType == PaymentMethodType.AppleInApp) && additionalStorageGb > 0)
|
||||||
|
{
|
||||||
|
throw new BadRequestException("You cannot add storage with this payment method.");
|
||||||
|
}
|
||||||
|
|
||||||
string paymentIntentClientSecret = null;
|
string paymentIntentClientSecret = null;
|
||||||
IPaymentService paymentService = null;
|
IPaymentService paymentService = null;
|
||||||
if(_globalSettings.SelfHosted)
|
if(_globalSettings.SelfHosted)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user