0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server
Daniel Lockyer 95651b33a6
🐛 Fixed error when using staff access tokens
closes https://github.com/TryGhost/Team/issues/645

- we did some refactoring in [1] to turn promise chained code into
  async/await, but this removed an early `return` from the code
- therefore we'd continue on to further code, which breaks for obscure
  reasons that weren't apparent from the error
- this commit adds back a return at the end of the block where we handle
  staff API tokens to match the same functionality as before
- this is regression that landed in 4.3.0 and would break staff user
  tokens

[1]: b677927322 (diff-bc0bedcac8ec9646d0644c86a91e46f4759bc1b0c2aebac54a2b26ec474c3d15L148-L155)
2021-04-29 08:56:27 +01:00
..
adapters Improved JSDoc in default scheduler 2020-12-16 17:25:05 +13:00
api Supported products include for Members Admin API 2021-04-20 13:04:51 +01:00
data 🐛 Fixed Ghost 4.3.0 migration that put all sites into "allow free members signup" (#12904) 2021-04-27 17:10:41 +01:00
lib Added mobiledoc.ghostVersion to blank mobiledoc document 2021-02-15 18:10:56 +00:00
models Added Product, StripeProduct & StripePrice relations (#12877) 2021-04-14 19:20:39 +01:00
public New logo in Admin (#12768) 2021-03-18 17:27:27 +00:00
services 🐛 Fixed error when using staff access tokens 2021-04-29 08:56:27 +01:00
translations Added Products API to Admin API 2021-04-20 13:04:51 +01:00
views Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
web Added Products API to Admin API 2021-04-20 13:04:51 +01:00
analytics-events.js Wrapped analytics tracker in try-catch 2021-02-24 15:57:38 +00:00
ghost-server.js Cleaned up use of express in ghost-server 2021-02-23 12:33:00 +00:00
notify.js Refactored notify to send started + ready 2021-02-19 20:42:10 +00:00
overrides.js Moved sqlite3 override rules to db connection lib 2021-02-05 11:51:56 +00:00
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00