Ghost/ghost/admin/mirage/config
Kevin Ansfield 5bf3fe9cb8 🐛 Fixed error preventing admin area being usable by staff users with Contributor role
closes https://github.com/TryGhost/Team/issues/2190

- added a guard around the tier fetches in `membersUtils` service so the fetch doesn't occur unless we have a logged in user and they aren't a contributor
- extracted the `withPermissionsCheck` mirage util function and added role checks around the mocked tiers endpoints
- added an acceptance test that loads the content screen and creates a draft post as a contributor to help catch regressions
2022-10-31 12:01:39 +00:00
..
api-keys.js Added initial custom integrations UI (#1051) 2018-10-18 00:18:29 +01:00
authentication.js Renamed passwordreset body object to password_reset 2022-04-28 15:33:09 +01:00
config.js 🎨 Added auto-login to private site when viewing site preview in admin (#1286) 2019-08-12 09:11:10 +01:00
custom-theme-settings.js Added acceptance tests for new design screen 2021-11-01 17:48:49 +00:00
emails.js Fixed tests 2019-11-08 11:14:04 +07:00
integrations.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
invites.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
labels.js Fixed mirage setup for members 2022-02-23 14:21:28 +00:00
members.js 🐛 Fixed error preventing admin area being usable by staff users with Contributor role 2022-10-31 12:01:39 +00:00
newsletters.js Added newsletter slug generation to mirage 2022-06-02 13:19:52 +02:00
offers.js Renamed products to tiers (#2372) 2022-05-11 22:41:54 +05:30
pages.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
posts.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
roles.js Clarified staff user roles in Admin (#1874) 2021-04-07 15:20:30 +01:00
settings.js Updated to fetch settings using /settings/?group= instead of ?type= 2020-06-24 14:23:51 +01:00
site.js Updated config service to use new /site/ and /config/ endpoints 2019-02-25 21:47:17 +07:00
slugs.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
snippets.js Implemented first iteration of content snippets 2020-10-15 18:03:35 +01:00
stats.js Moving over the new Dashboard to replace the old (#2389) 2022-05-17 09:34:34 +02:00
tags.js Fixed normalization of attrs in Mirage config and tests (#872) 2017-09-28 09:33:00 +07:00
themes.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
tiers.js 🐛 Fixed error preventing admin area being usable by staff users with Contributor role 2022-10-31 12:01:39 +00:00
uploads.js Updated gh-uploader to work with new /images/upload/ endpoint 2019-02-25 23:01:49 +07:00
users.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
webhooks.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00