# 允许非工作人员成员创建邀请到主题

**URL:** https://meta.discourse.org/t/allow-non-staff-site-members-to-create-invite-to-topic/385235
**Category:** Feature
**Tags:** invites
**Created:** [2025年十月10日 10:10 UTC](https://meta.discourse.org/t/allow-non-staff-site-members-to-create-invite-to-topic/385235 "2025-10-10T10:10:50Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [2025年十月10日 10:10 UTC](https://meta.discourse.org/t/allow-non-staff-site-members-to-create-invite-to-topic/385235/1 "2025-10-10T10:10:50Z")

</div>

作为用户，我在启用 `arrive_at` 主题的邀请时遇到了麻烦。

点击公开版块中的主题上的“分享”后，我可以看到“邀请”按钮。但是，当我创建邀请时，“arrive\_at”字段未在数据库中设置（我通过 [Data Explorer](https://meta.discourse.org/t/32566?silent=true) 检查了 topic\_invites 表）。之后编辑邀请时，“arrive\_at”字段未显示且无法编辑。

我查找了管理员和群组设置中的相关设置，但一无所获。

我们没有使用 `must approve users`。我们在 `Invite allowed groups` 设置中启用了 trust\_level\_2。

似乎一定还有其他设置（或硬编码）限制了主题邀请的使用。

更新：我认为这实际上是一个 bug。我在这里的 Meta 的这个主题中可以重现此问题。作为 tl2 用户（非员工），无法创建设置了 arrive at topic 的邀请链接。

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2025年十月10日 10:20 UTC](https://meta.discourse.org/t/allow-non-staff-site-members-to-create-invite-to-topic/385235/2 "2025-10-10T10:20:30Z")

</div>

该主题是公共类别还是私有类别？所以，每个人都可以看到它吗？

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [2025年十月10日 12:19 UTC](https://meta.discourse.org/t/allow-non-staff-site-members-to-create-invite-to-topic/385235/3 "2025-10-10T12:19:06Z")

</div>

该主题是公开的。

对于不对所有人可见的主题，“共享主题”模态框中“邀请”按钮的缺失是正确的。

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2025年十月10日 13:13 UTC](https://meta.discourse.org/t/allow-non-staff-site-members-to-create-invite-to-topic/385235/4 "2025-10-10T13:13:43Z")

</div>

> [@Overgrow](#):
>
> 似乎必须有一些其他设置（或硬编码）来限制使用主题邀请。

是的，你说得对。它仅限于工作人员

> <https://github.com/discourse/discourse/blob/aa2c407e80997471a7da945b711333505b36bf70/app/assets/javascripts/discourse/app/components/modal/create-invite.gjs#L183-L185>

抱歉问了主题是否公开。我只是记得在某些情况下这很重要。  
例如 [Rules for inviting people to topics? - #10 by JammyDodger](https://meta.discourse.org/t/rules-for-inviting-people-to-topics/167896/10?u=moin)

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2025年十月10日 13:22 UTC](https://meta.discourse.org/t/allow-non-staff-site-members-to-create-invite-to-topic/385235/5 "2025-10-10T13:22:52Z")

</div>

当前行为是设计如此。但我理解允许非版主或管理员的成员在创建邀请时指定主题会很有用，因此我已将此建议提交至 #Contribute > Feature 以供考虑。

人们希望以各种方式设置其邀请系统。我 [不久前与某人交谈过](https://meta.discourse.org/t/how-can-i-set-up-invites-by-members-so-admins-control-what-invitees-see/379740/4?u=tobiaseigen)，对方希望能设置默认主题，并禁止成员更改它。

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [2025年十月10日 17:40 UTC](https://meta.discourse.org/t/allow-non-staff-site-members-to-create-invite-to-topic/385235/6 "2025-10-10T17:40:40Z")

</div>

> [@tobiaseigen](#):
>
> 当前行为是符合设计的。但我可以理解允许非版主或管理员的用户在创建邀请时指定主题会很有用。

请原谅我的争论，但文档中的这行：

> [@Discourse](#):
>
> ℹ 非工作人员用户只能邀请人们加入公共类别中的主题。

暗示了其他情况。

这就是为什么我建议这可能是一个错误。

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2025年十月10日 18:07 UTC](https://meta.discourse.org/t/allow-non-staff-site-members-to-create-invite-to-topic/385235/7 "2025-10-10T18:07:07Z")

</div>

嗯……你说得对！这里似乎确实有些不对劲。即使作为管理员，如果我在主题菜单中选择“分享”按钮，然后选择“邀请”，创建的邀请也不会预先选择主题。我不记得这是不是设计如此，但这肯定不像它本可以的那样直观。

那个文档主题确实需要更新，所以感谢你指出来。
