mirror of
https://github.com/bitwarden/server.git
synced 2025-02-28 03:51:23 +01: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!");
|
||||
}
|
||||
|
||||
if((paymentMethodType == PaymentMethodType.GoogleInApp ||
|
||||
paymentMethodType == PaymentMethodType.AppleInApp) && additionalStorageGb > 0)
|
||||
{
|
||||
throw new BadRequestException("You cannot add storage with this payment method.");
|
||||
}
|
||||
|
||||
string paymentIntentClientSecret = null;
|
||||
IPaymentService paymentService = null;
|
||||
if(_globalSettings.SelfHosted)
|
||||
|
Loading…
Reference in New Issue
Block a user