Ghost/ghost/admin/app/models
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
..
action.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
api-key.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
base.js updated to use new model._meta 2020-02-10 12:41:35 +00:00
email-recipient.js Added activity feed to member details screen (#1796) 2020-12-10 11:38:38 +00:00
email.js Added email open rate to posts list in admin (#1772) 2020-11-26 17:19:05 +00:00
integration.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
invite.js 🐛 Fixed host limit error when resending a pending invite (#1881) 2021-04-06 15:10:03 +12:00
label.js Added labels for Members (#1477) 2020-02-14 15:04:01 +05:30
member-subscription.js Updated member model to use new subscriptions structure 2019-10-03 23:10:42 +05:30
member.js Revert "Revert "Updated usage of subscriptions data for members (#1834)"" 2021-02-09 07:52:40 +05:30
navigation-item.js Added Secondary Navigation (#1410) 2019-12-04 11:14:45 +07:00
notification.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
page.js 🎨 Separated post and page list screens (#1101) 2019-02-22 10:17:33 +07:00
post.js Removed unused locale fields 2021-02-04 19:04:34 +13:00
role.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
setting.js Fixed EmberObject.create error on Admin start (#1841) 2021-02-18 13:25:21 +13:00
slack-integration.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
snippet.js Renamed snippet.title to snippet.name for consistency 2020-10-16 10:15:07 +01:00
tag.js Added UI for setting tag metadata (#1632) 2020-07-13 14:58:13 +02:00
theme.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
user.js Removed unused locale fields 2021-02-04 19:04:34 +13:00
webhook.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00