Ghost/core/server
Daniel Lockyer f2c074ac59 Fixed error when editing user with empty roles data
- we send the roles data array in when we're changing the role of the
  user
- if we send an empty array, we don't want to edit the user's role
- the code _thought_ that's what it was doing, but we only check the
  falsiness of the array, which is truthy for `[]`
- it also needs to check the length of the array
- this commit includes a test which would fail with a 500 error without
  the fix
2022-03-10 17:29:30 +00:00
..
adapters Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
api Improved coverage of api serializer 2022-03-09 20:02:15 +00:00
data Removed Roon related importer code 2022-03-10 16:29:54 +08:00
lib Updated probe-image-size options to reflect underlying change 2022-03-09 20:27:38 +00:00
models Fixed error when editing user with empty roles data 2022-03-10 17:29:30 +00:00
services Fixed new sites using "Default Product" Tier name 2022-03-10 11:35:03 +00:00
views Updated unsubscribe page 2022-03-10 10:39:20 +00:00
web Centralized base API path value across server codebase 2022-03-09 17:15:51 +08:00
analytics-events.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
ghost-server.js Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
notify.js Removed unused import 2021-12-06 08:17:07 +00:00
overrides.js Set global Luxon timezone override to UTC 2021-10-20 09:19:29 +02:00
run-update-check.js Revert "Revert "Extract logging from DI patterns, only use @tryghost/logging package"" (#13884) 2021-12-14 11:22:39 +00:00
update-check.js Added library for extracting database information 2022-01-18 09:31:08 +00:00