0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client
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
..
adapters Get Ember Admin ready for production 2014-07-22 22:33:49 +00:00
assets Move image upload to API 2014-07-15 12:40:14 +02:00
components Add User Role Dropdown 2014-07-30 17:59:14 -06:00
controllers Add User Role Dropdown 2014-07-30 17:59:14 -06:00
helpers Add XSS prevention 2014-07-27 23:03:01 +02:00
html New HTML email template 2014-07-07 22:47:34 +02:00
initializers Add User Role Dropdown 2014-07-30 17:59:14 -06:00
mixins Settings screens redirect for certain roles 2014-07-30 00:57:16 -07:00
models Add User Role Dropdown 2014-07-30 17:59:14 -06:00
routes Merge pull request #3463 from rwjblue/hard-refresh 2014-07-30 22:28:27 +01:00
serializers Extend adapter to support automatic includes 2014-07-21 17:05:13 +00:00
templates Add User Role Dropdown 2014-07-30 17:59:14 -06:00
transforms
utils Improve importer error messaging 2014-07-29 12:02:18 +01:00
validators Create new user validator to DRY up validators 2014-07-25 13:20:40 -06:00
views Add User Role Dropdown 2014-07-30 17:59:14 -06:00
.jshintrc updated Ember Simple Auth to latest version 2014-07-25 16:04:19 +02:00
app.js Get Ember Admin ready for production 2014-07-22 22:33:49 +00:00
config-dev.js Get Ember Admin ready for production 2014-07-22 22:33:49 +00:00
config-prod.js Get Ember Admin ready for production 2014-07-22 22:33:49 +00:00
loader.js Remove inline script from default.hbs 2014-07-21 20:00:54 +02:00
router.js Removing old "user settings" screen and putting in new MU "users settings" screen and updating functional test cases. 2014-07-05 11:33:03 -04:00