allow subscribers to buy their final monthly gem (#10331)

This commit is contained in:
Alys
2018-05-07 23:20:28 +10:00
committed by Matteo Pagliazzi
parent ac451bdb9b
commit 8470f16f4f

View File

@@ -49,7 +49,7 @@ export class BuyGemOperation extends AbstractGoldItemOperation {
throw new NotAuthorized(this.i18n('reachedGoldToGemCap', {convCap: this.convCap}));
}
if (user.purchased.plan.gemsBought + this.quantity >= this.convCap) {
if (user.purchased.plan.gemsBought + this.quantity > this.convCap) {
throw new NotAuthorized(this.i18n('reachedGoldToGemCapQuantity', {
convCap: this.convCap,
quantity: this.quantity,