mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:31:56 +08:00
FIX: keyboard shortcut allowed you to open composer on closed topics
This commit is contained in:
parent
2423b18839
commit
252cbd8635
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user