Merge pull request #3493 from rwjblue/fix-posts-post-author-list

Show posts authored by current user.
This commit is contained in:
Hannah Wolfe 2014-07-31 22:41:11 +01:00
commit 91ae72dc82

View File

@ -35,7 +35,7 @@ var PostsPostRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, load
return self.store.find('post', paginationSettings).then(function (records) {
var post = records.get('firstObject');
if (user.get('isAuthor') && post.isAuthoredByUser(user)) {
if (user.get('isAuthor') && !post.isAuthoredByUser(user)) {
// do not show the post if they are an author but not this posts author
post = null;
}