FIX: keyboard shortcut allowed you to open composer on closed topics

This commit is contained in:
Sam 2017-12-21 13:09:18 +11:00
parent 2423b18839
commit 252cbd8635

View File

@ -272,7 +272,7 @@ export default Ember.Controller.extend(BufferedContent, {
const quoteState = this.get('quoteState');
const postStream = this.get('model.postStream');
if (!postStream) return;
if (!postStream || !topic || !topic.get('details.can_create_post')) { return; }
const quotedPost = postStream.findLoadedPost(quoteState.postId);
const quotedText = Quote.build(quotedPost, quoteState.buffer);