mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -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 |
||
---|---|---|
.. | ||
base | ||
relations | ||
action.js | ||
api-key.js | ||
author.js | ||
benefit.js | ||
custom-theme-setting.js | ||
email-batch.js | ||
email-recipient.js | ||
email.js | ||
index.js | ||
integration.js | ||
invite.js | ||
label.js | ||
member-analytic-event.js | ||
member-email-change-event.js | ||
member-login-event.js | ||
member-paid-subscription-event.js | ||
member-payment-event.js | ||
member-product-event.js | ||
member-status-event.js | ||
member-stripe-customer.js | ||
member-subscribe-event.js | ||
member.js | ||
mobiledoc-revision.js | ||
offer-redemption.js | ||
offer.js | ||
permission.js | ||
post.js | ||
posts-meta.js | ||
product.js | ||
role.js | ||
session.js | ||
settings.js | ||
single-use-token.js | ||
snippet.js | ||
stripe-customer-subscription.js | ||
stripe-price.js | ||
stripe-product.js | ||
tag-public.js | ||
tag.js | ||
user.js | ||
webhook.js |