0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core
Naz 4bc14d2c4b 🐛 Fixed invalid user role assignment
closes https://github.com/TryGhost/Toolbox/issues/351

- When an invalid value was passed in `roles` parameter when editing a user it resulted in incorrect database state (all roles appeared to be unassigned from the user).
- The fix includes ability to set user role by an allowed name, one of:  'Administrator', 'Editor', 'Author', 'Contributor'.
- Also added a validation in case a non-ObjectID value is passed in roles to the users edit method.
2022-06-01 17:48:08 +08:00
..
admin@9db564d1fd Updated Admin to v5.1.1 2022-05-30 13:54:28 +01:00
cli Added docs for writing new commands 2022-05-17 17:16:44 +01:00
frontend 🎨 Reduced favicon requirements and added image formatting (#14918) 2022-05-27 16:36:53 +02:00
server 🐛 Fixed invalid user role assignment 2022-06-01 17:48:08 +08:00
shared Updated single tier labels and subscription error messages 2022-06-01 13:44:08 +05:30
app.js
boot.js Added frontend key to ghost_head for portal (#14782) 2022-05-11 17:34:31 +01:00
bridge.js Renamed lang and session_secret default settings (#14791) 2022-05-12 15:07:05 +01:00