diff --git a/framework/core/js/forum/src/components/PostStream.js b/framework/core/js/forum/src/components/PostStream.js index 7a8715176..38b710976 100644 --- a/framework/core/js/forum/src/components/PostStream.js +++ b/framework/core/js/forum/src/components/PostStream.js @@ -179,7 +179,7 @@ class PostStream extends Component { .map(id => { const post = app.store.getById('posts', id); - return post && post.discussion() && post.canEdit() !== null ? post : null; + return post && post.discussion() && typeof post.canEdit() !== 'undefined' ? post : null; }); } @@ -391,7 +391,7 @@ class PostStream extends Component { this.discussion.postIds().slice(start, end).forEach(id => { const post = app.store.getById('posts', id); - if (post && post.discussion()) { + if (post && post.discussion() && typeof post.canEdit() !== 'undefined') { loaded.push(post); } else { loadIds.push(id);