mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00: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…
x
Reference in New Issue
Block a user