0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server/models
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
..
base 🐛 Fixed duplicate tags created when slugs contain spaces (#14277) 2022-03-10 13:07:00 +01:00
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 🐛 Fixed duplicate tags created when slugs contain spaces (#14277) 2022-03-10 13:07:00 +01:00
posts-meta.js
product.js Switched products.visible for products.visibility (#14264) 2022-03-04 11:07:38 +00:00
role.js
session.js
settings.js Refactored default settings population to reduce unnecessary DB queries 2022-02-08 10:11:00 +01:00
single-use-token.js Updated SingleUseToken grace period to 10 minutes (#13926) 2022-01-03 17:55:53 +02:00
snippet.js
stripe-customer-subscription.js
stripe-price.js
stripe-product.js
tag-public.js
tag.js 🐛 Fixed "Create Post" action error in Zapier when assigning new tags (#13972) 2022-01-14 13:37:20 +00:00
user.js Fixed error when editing user with empty roles data 2022-03-10 17:29:30 +00:00
webhook.js