Ghost/ghost/admin/tests/unit
naz 238632402c 🐛 Fixed host limit error when resending a pending invite (#1881)
refs https://github.com/TryGhost/Team/issues/587
refs e30b9735fa

- It was not possible to invite a new Contributor to a site that has reached its limit
- This fix divides the resend invite action into two separate steps: 1. Deleting existing invite 2. Creating a new one for the same data
- It was hitting the limit because the permissions were correctly checking for "add" action being executed when the limit of invites/staff users was already used up. By removing existing invite we mimic the behavior the server would do for us anyway (2111992dd4/core/server/services/invites/invites.js (L18-L22))

Co-authored-by: Rish <zrishabhgarg@gmail.com>
2021-04-06 15:10:03 +12:00
..
authenticators Removed tour feature 2021-03-02 14:29:26 +00:00
components Update dependency ember-mocha to v0.16.0 2019-06-17 15:32:09 +01:00
controllers Updated navigation (#1832) 2021-02-02 16:08:06 +00:00
helpers Fix test 2021-02-08 15:08:55 +01:00
mixins Update dependency eslint-plugin-ghost to v1.4.0 2020-05-06 18:07:01 +01:00
models 🐛 Fixed host limit error when resending a pending invite (#1881) 2021-04-06 15:10:03 +12:00
serializers Switched from v3 to canary API 2021-02-05 09:12:26 +00:00
services 🐛 Fixed MRR start date value in chart (#1865) 2021-03-15 15:23:55 +05:30
transforms Fixed EmberObject.create error on Admin start (#1841) 2021-02-18 13:25:21 +13:00
utils Migrate to latest ember, ember-mocha and modern ember testing (#1044) 2019-01-02 09:58:55 +00:00
validators 🔥 Removed all subscriber feature related code (#1337) 2019-09-26 15:58:01 +02:00
.gitkeep Ember init, bower deps, es6 modules 2015-03-11 12:37:41 -06:00