mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
Merge pull request #3493 from rwjblue/fix-posts-post-author-list
Show posts authored by current user.
This commit is contained in:
commit
91ae72dc82
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user