mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-05 13:22:11 +00:00
Remove empty checkbox for closed/archived topics
This commit is contained in:
parent
fcd5a06e69
commit
5b8985f297
@ -371,7 +371,7 @@ SQL
|
|||||||
|
|
||||||
def can_have_answer
|
def can_have_answer
|
||||||
return true if SiteSetting.allow_solved_on_all_topics
|
return true if SiteSetting.allow_solved_on_all_topics
|
||||||
|
return false if object.closed || object.archived
|
||||||
return scope.allow_accepted_answers_on_category?(object.category_id)
|
return scope.allow_accepted_answers_on_category?(object.category_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user