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…
Reference in New Issue