Ghost/ghost/admin/mirage
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
..
config 🐛 Fixed error preventing admin area being usable by staff users with Contributor role 2022-10-31 12:01:39 +00:00
factories Improved timezone support date picker and improved tests (#15545) 2022-10-07 12:20:06 +02:00
fixtures Removed duplicate newsletter tracking settings (#15717) 2022-10-28 02:35:39 +05:30
models Removed unneeded member.emailRecipients relationship setup 2022-05-25 11:18:37 +01:00
scenarios Updated newsletter management for switch to nullable sender_name 2022-04-15 09:43:22 +01:00
serializers Updated usage of the Tiers API (#2388) 2022-05-16 19:51:49 +01:00
.eslintrc.js Update dependency eslint to v7 (#1566) 2020-05-17 22:53:37 +01:00
config.js Fixed "The routes only function has been deprecated" output in test runs 2022-05-25 11:03:05 +01:00
routes-dev.js Fixed "The routes only function has been deprecated" output in test runs 2022-05-25 11:03:05 +01:00
routes-test.js Refactored delete all content modal 2022-09-08 09:18:46 +01:00
utils.js 🐛 Fixed error preventing admin area being usable by staff users with Contributor role 2022-10-31 12:01:39 +00:00