mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
f2c074ac59
- 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 |
||
---|---|---|
.. | ||
admin | ||
content | ||
members |