We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3406a60 + 7174b10 commit c1eb645Copy full SHA for c1eb645
lib/onebox/engine/discourse_local_onebox.rb
@@ -84,12 +84,12 @@ def topic_html(route)
84
85
def can_see_post?(post, source_topic)
86
return false if post.nil? || post.hidden || post.trashed? || post.topic.nil?
87
- Guardian.new.can_see_post?(post) || same_category?(post.topic.category, source_topic)
+ Guardian.new.can_see_post?(post)
88
end
89
90
def can_see_topic?(topic, source_topic)
91
return false if topic.nil? || topic.trashed? || topic.private_message?
92
- Guardian.new.can_see_topic?(topic) || same_category?(topic.category, source_topic)
+ Guardian.new.can_see_topic?(topic)
93
94
95
def same_category?(category, source_topic)
0 commit comments