1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 08:11:27 +02:00

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 3af9cd794d
commit b87a708e34

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;
});
}