0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/e2e-api
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
..
admin Fixed error when editing user with empty roles data 2022-03-10 17:29:30 +00:00
content Fixed tiers test with correct visibility (#14280) 2022-03-08 18:00:30 +05:30
members Added default values for Stripe config in tests 2022-02-21 20:06:20 +13:00