Merge branch 'release' into develop

This commit is contained in:
Sabe Jones
2018-05-08 18:41:13 +00:00
98 changed files with 592 additions and 589 deletions

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,