mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 10:59:51 +08:00
Don't allow voting on archived topics.
This commit is contained in:
parent
83b46a6b88
commit
31d95c295f
|
@ -60,7 +60,7 @@ module ::PollPlugin
|
|||
end
|
||||
|
||||
def is_closed?
|
||||
@post.topic.closed? || (!SiteSetting.allow_user_locale? && (@post.topic.title =~ /^#{I18n.t('poll.closed_prefix')}/i) === 0)
|
||||
@post.topic.closed? || @post.topic.archived? || (!SiteSetting.allow_user_locale? && (@post.topic.title =~ /^#{I18n.t('poll.closed_prefix')}/i) === 0)
|
||||
end
|
||||
|
||||
def options
|
||||
|
|
Loading…
Reference in New Issue
Block a user