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.
1 parent 2748ef5 commit 38a03c1Copy full SHA for 38a03c1
lib/discourse_translator/guardian_extension.rb
@@ -20,7 +20,7 @@ def can_detect_language?(post)
20
end
21
22
def can_translate?(post)
23
- return false unless user_group_allow_translate?
+ return false if !user_group_allow_translate?
24
25
if SiteSetting.experimental_topic_translation
26
return false if post.translation_for(I18n.locale).present?
0 commit comments