0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server
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
..
adapters 🔥 Removed versioned APIs 2022-04-28 15:37:09 +01:00
api 🎨 Reduced favicon requirements and added image formatting (#14918) 2022-05-27 16:36:53 +02:00
data Fixed detection of Windows environment when connecting to SQLite temp DB 2022-05-30 17:42:34 -04:00
lib 🎨 Reduced favicon requirements and added image formatting (#14918) 2022-05-27 16:36:53 +02:00
models 🐛 Fixed invalid user role assignment 2022-06-01 17:48:08 +08:00
services Added getLazyRelation model helper method (#14943) 2022-05-31 13:21:53 +02:00
views Updated unsubscribe page 2022-03-10 10:39:20 +00:00
web Increased body parser limit to 50mb 2022-06-01 10:12:23 +01:00
analytics-events.js
ghost-server.js Removed config and bluebird from ghost-server 2022-04-28 15:37:10 +01:00
notify.js
overrides.js
run-update-check.js Renamed settings index.js to settings-service.js 2022-05-10 20:55:31 +01:00
update-check.js 🔥 Removed versioned APIs 2022-04-28 15:37:09 +01:00