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

Move user API to primary document format #2682

Merged
merged 1 commit into from
May 2, 2014
Merged

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented May 2, 2014

Note, this updates every usage of the user API except the one in the update check because there is a problem with the permissions there.

closes #2593

  • added new format to user API methods
  • changed all places where the user api was used
  • updated tests and added more coverage
  • little bit of cleanup in utils/api

@@ -42,7 +42,7 @@ function ghostLocals(req, res, next) {
api.users.read.call({user: req.session.user}, {id: req.session.user}),
api.notifications.browse()
]).then(function (values) {
var currentUser = values[0],
var currentUser = values[0].users[0],

This comment was marked as abuse.

closes TryGhost#2593

- added new format to user API methods
- changed all places where the user api was used
- updated tests and added more coverage
- little bit of cleanup in utils/api
ErisDS added a commit that referenced this pull request May 2, 2014
Move user API to primary document format
@ErisDS ErisDS merged commit 2c0ba46 into TryGhost:master May 2, 2014
@ErisDS ErisDS deleted the issue-2593 branch May 3, 2014 17:31
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 API: move to primary document format
1 participant