From 7ca51764d642a97463f4b8ee6b5e0442d7898792 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Thu, 31 Jul 2014 17:23:08 -0400 Subject: [PATCH] Show posts authored by current user. The current logic allows showing of all EXCEPT the current users posts (when the current user is an author). This fixes that. --- core/client/routes/posts/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/routes/posts/post.js b/core/client/routes/posts/post.js index d9470d047e..c20a8e6355 100644 --- a/core/client/routes/posts/post.js +++ b/core/client/routes/posts/post.js @@ -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; }