Add extra check to make sure post has been fully loaded

Ref #295
This commit is contained in:
Toby Zerner 2015-09-23 12:22:37 +09:30
parent 69a50565bb
commit a0267d9515

View File

@ -181,7 +181,7 @@ class PostStream extends mixin(Component, evented) {
.map(id => {
const post = app.store.getById('posts', id);
return post && post.discussion() && post.user() !== false ? post : null;
return post && post.discussion() && post.user() !== false && post.canEdit() !== null ? post : null;
});
}