Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rwjblue committed Jul 31, 2014
1 parent a04562b commit 7ca5176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/client/routes/posts/post.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7ca5176

Please sign in to comment.