mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
- 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 |
||
---|---|---|
.. | ||
__snapshots__ | ||
actions.test.js | ||
config.test.js | ||
custom_theme_settings.test.js | ||
db.test.js | ||
email_preview.test.js | ||
emails.test.js | ||
files.test.js | ||
images.test.js | ||
integrations.test.js | ||
invites.test.js | ||
key_authentication.test.js | ||
labels.test.js | ||
legacy-members.test.js | ||
mail.test.js | ||
media.test.js | ||
members-importer.test.js | ||
members.test.js | ||
notifications.test.js | ||
oembed.test.js | ||
pages.test.js | ||
posts.test.js | ||
products.test.js | ||
redirects.test.js | ||
roles.test.js | ||
settings.test.js | ||
site.test.js | ||
slugs.test.js | ||
snippets.test.js | ||
tags.test.js | ||
themes.test.js | ||
tiers.test.js | ||
users.test.js | ||
utils.js | ||
webhooks.test.js |