Don't allow voting on archived topics.
This commit is contained in:
parent
83b46a6b88
commit
31d95c295f
|
@ -60,7 +60,7 @@ module ::PollPlugin
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_closed?
|
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
|
end
|
||||||
|
|
||||||
def options
|
def options
|
||||||
|
|
Loading…
Reference in New Issue