mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ var PostsPostRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, load
|
||||||
return self.store.find('post', paginationSettings).then(function (records) {
|
return self.store.find('post', paginationSettings).then(function (records) {
|
||||||
var post = records.get('firstObject');
|
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
|
// do not show the post if they are an author but not this posts author
|
||||||
post = null;
|
post = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue