0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/models
Matt Enlow 21abed7f9a Add User Role Dropdown
Closes #3402, Closes #3428

-------------------

 ### Components
- Added GhostSelectComponent to handle async select creation (h/t @rwjblue)
- Added GhostRolesSelector (extends GhostSelect) for displaying user role options
- Created StoreInjector for surgically inserting the store into things that normally wouldn't have them.

 ### Users Settings
- InviteNewUserModal now uses GhostRolesSelector & defaults to Author
- The role dropdown for user settings has permissions set per 3402

 ### User Model
- Added `role` property as an interface to getting and setting `roles`
- Refactored anything that set `roles` to set `role`
- isAdmin, isAuthor, isOwner and isEditor are all keyed off of `role` now

 ### Tests
- Added functional tests for Settings.Users
- updated settings.users and settings.users.user screens
- fix spacing on screens

 ### Server Fixtures
- Fixed owner fixture's roles
2014-07-30 17:59:14 -06:00
..
notification.js Turn on update notifications for Ember admin 2014-07-11 15:02:26 +00:00
post.js Transfer Ownership 2014-07-23 12:41:31 +02:00
role.js Improve handling of users and roles in admin 2014-07-24 14:20:47 +00:00
setting.js Fire NProgress on User, Post, and Settings save 2014-07-13 14:19:27 -06:00
slug-generator.js Settings: Admin User Tab 2014-07-14 08:52:06 -04:00
tag.js Transfer Ownership 2014-07-23 12:41:31 +02:00
user.js Add User Role Dropdown 2014-07-30 17:59:14 -06:00