受限主题中的投票,用户无法回复

我社区的一位用户给我发消息说,他无法在我们用于社区公告的分类中进行投票。我们使用该分类发布社区更新,昨天我们发起了一个投票,询问用户对某项变更的看法,随后一位用户向我发送了以下内容:

你好,Diego,
我在尝试对投票进行投票时收到此错误:

您无法投票,因为您无法在该主题中发帖。

我浏览了 Discourse 的代码,发现 消息 IDuser_cant_post_in_topic,当用户尝试对投票进行投票但无法回复该主题时便会触发此错误。


因此,我的问题是:

是否可以创建一个设置来启用或禁用该检查?
也就是说,一种允许无法回复的用户对投票进行投票的方法。

1 个赞

i found a workaround for this until something better can be implemented.

you can go into the category settings and edit the permissions to where everyone (or whicever group you decide) is able to reply/see for the category. then if you dont want people to reply to the topic but you still want them to be able to vote on the poll, just close the topic.

Just checking, are you referring to polls (like the one I included below) or the Discourse Voting plugin?

  • Option 1
  • Option 2

0 voters

To polls, Discourse Polls that is integrated in Core

1 个赞

I take it the category the poll is in is restricted. Users can only read?

1 个赞

Yep, if users cannot reply then they can’t vote on polls

2 个赞