Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of users and roles in admin #3388

Merged
merged 1 commit into from
Jul 24, 2014
Merged

Improve handling of users and roles in admin #3388

merged 1 commit into from
Jul 24, 2014

Conversation

jaswilli
Copy link
Contributor

Closes #3083 Refs #3229

  • Populates the dropdown list in the invite user menu with the
    list of roles a user is permitted to create.
  • Users API now checks the invite user request for allowed roles.
  • Change API response from 200 to 201 on successful invitation.
  • Change API response from 500 to 201 when the user was created but
    the email was not sent. The client will show a warning notification
    when it sees 'invited-pending' as the new user's status.
  • Add support for "?status=all" to the /users endpoint.
  • Refactor the route and controller for the /settings/users page so
    that there's only one network API call to load users instead of two.

Closes #3083 Refs #3229
- Populates the dropdown list in the invite user menu with the
  list of roles a user is permitted to create.
- Users API now checks the invite user request for allowed roles.
- Change API response from 200 to 201 on successful invitation.
- Change API response from 500 to 201 when the user was created but
  the email was not sent.  The client will show a warning notification
  when it sees 'invite-pending' as the new user's status.
- Add support for "?status=all" to the /users endpoint.
- Refactor the route and controller for the /settings/users page so
  that there's only one network API call to load users instead of two.
ErisDS added a commit that referenced this pull request Jul 24, 2014
Improve handling of users and roles in admin
@ErisDS ErisDS merged commit 719d90d into TryGhost:master Jul 24, 2014
@jaswilli jaswilli deleted the issue-3083 branch July 24, 2014 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User & Roles API: Who can invite what role
2 participants