1
0
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:
Kyle Spearrin 2019-09-18 10:52:53 -04:00
parent b39d1e13d7
commit bed2a0ab7b

View File

@ -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)