# 更改最低信任级别（PM 和标志）时出现问题

**URL:** https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627
**Category:** Feature
**Created:** [2020年十二月8日 12:14 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627 "2020-12-08T12:14:27Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![nildarar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nildarar/32/331927_2.png) [@nildarar](https://meta.discourse.org/u/nildarar)
#### Post date: [2020年十二月8日 12:14 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/1 "2020-12-08T12:14:27Z")

</div>

当我们把“发送消息所需的最小信任等级”和“标记帖子所需的最小信任等级”都设置为 tl1 时，新用户将无法联系管理员，并且必须为所有请求新建主题。

更好的做法是：允许所有用户随时向工作人员发送私信，并且任何信任等级的用户都可以标记他们的帖子。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2020年十二月8日 12:32 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/2 "2020-12-08T12:32:12Z")

</div>

> [@nildarar](#):
>
> 最好让所有用户始终可以向工作人员发送私信。

> **[GitHub - pfaffman/discourse-allow-pm-to-staff: Allow private messages to be sent to staff for...](https://github.com/pfaffman/discourse-allow-pm-to-staff)**
>
> Allow private messages to be sent to staff for users who could otherwise not send private messages.

> [@nildarar](#):
>
> 任何信任等级的用户都可以标记自己的帖子。

您提到的设置难道不能更改这一点吗？TL0 用户并不受信任。要达到信任等级 1 并不需要太多条件。

---

<div class="post-metadata">

### Author: ![nildarar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nildarar/32/331927_2.png) [@nildarar](https://meta.discourse.org/u/nildarar)
#### Post date: [2020年十二月8日 15:16 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/3 "2020-12-08T15:16:27Z")

</div>

感谢这个插件，我会尽快检查并安装。

上文我举例提到了 tl1。实际上，由于新用户 spam 量很大，我们将“发送消息所需最低信任等级”设为 tl1，将“标记帖子所需最低信任等级”设为 tl2。但我们社区的大量工作都是通过标记（flag）来完成的。我们一直告诉用户：如果您希望帖子被审核或删除，或希望更改主题分类，请使用标记功能。另一方面，由于我们不能对所有用户开放标记功能，这造成了一些困惑。

如果能让所有用户都能标记自己的帖子以供管理员审核，同时将“标记帖子所需最低信任等级”仅适用于他人帖子，处理这些请求将会更加容易。

* * *

我现在想起来，我之前已经在 [[这里]](https://meta.discourse.org/t/min-trust-to-flag-posts/165450) 提到过这件事了，抱歉。

---

<div class="post-metadata">

### Author: ![nildarar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nildarar/32/331927_2.png) [@nildarar](https://meta.discourse.org/u/nildarar)
#### Post date: [2021年二月20日 06:04 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/4 "2021-02-20T06:04:12Z")

</div>

今天我意识到，当可以向群组发送消息时，任何信任级别的用户都可以向该群组发送消息。在这种情况下，“发送消息所需的最低信任度”设置将被忽略。

**这是漏洞还是功能？**  
如果是功能，我们可以直接利用它，而无需使用插件。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2021年二月20日 15:48 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/5 "2021-02-20T15:48:13Z")

</div>

群组设置允许您控制谁可以向群组发送消息。

---

<div class="post-metadata">

### Author: ![nildarar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nildarar/32/331927_2.png) [@nildarar](https://meta.discourse.org/u/nildarar)
#### Post date: [2021年二月21日 06:09 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/6 "2021-02-21T06:09:47Z")

</div>

是的，我们使用了该群组设置。但我原以为“发送消息所需的最低信任等级”应该覆盖该设置。如果忽略群组中的“发送消息所需的最低信任等级”不算是一个漏洞，那它可以作为一个功能来使用。

我们需要将私信权限限制在信任等级0（tl0）和信任等级1（tl1），使它们只能向管理员发送消息。借助此功能，我们可以通过群组轻松实现这一目标。

**在未来的更新中，是否有可能失去这一功能？**

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [2023年三月4日 18:31 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/7 "2023-03-04T18:31:32Z")

</div>

> [@pfaffman](#):
>
> [GitHub - pfaffman/discourse-allow-pm-to-staff: Allow private messages to be sent to staff for users who could otherwise not send private messages.](https://github.com/pfaffman/discourse-allow-pm-to-staff)

谢谢 Jay 提供的链接。你能确认或否认它是否仍然有效吗？

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2023年三月4日 22:33 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/8 "2023-03-04T22:33:43Z")

</div>

我有一个客户在使用它。他没有抱怨过。这足以证明它有效。如果您发现其他情况，请告知我。

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [2023年三月17日 04:34 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/9 "2023-03-17T04:34:14Z")

</div>

仍然运行得很好！非常感谢。\n\n请保持此插件的激活状态，如果有可能将其合并到 Discourse 核心中，那就更好了。根据我管理论坛的经验，这是一个基本必需的功能。

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [2023年三月29日 00:31 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/10 "2023-03-29T00:31:08Z")

</div>

您好 @pfaffman ，看起来 [GitHub - pfaffman/discourse-allow-pm-to-staff: Allow private messages to be sent to staff for users who could otherwise not send private messages.](https://github.com/pfaffman/discourse-allow-pm-to-staff) 的最近更新破坏了普通用户之间的私信功能。具体来说，普通用户可以回复已有的私信主题，但无法创建新的私信主题。这是错误信息：

![Screenshot from 2023-03-28 19-35-07](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/4X/2/8/4/284908626c8441236a2c0b2edd5a980b429165d5_2_690x49.png)

我不太理解 `allow_pm_allowed_pm_groups` 设置的功能，但我尝试将其设置为 `staff,trust_level_0,trust_level_1,trust_level_2`，但问题仍然存在。我禁用了该插件后，私信功能恢复正常。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2023年三月29日 12:20 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/11 "2023-03-29T12:20:28Z")

</div>

糟糕。

感谢告知。

我写的那个程序是给客户用的，客户不允许用户之间进行私信，所以我忽略了对这种情况的测试。

我会尽快修复。如果您的预算充足，修复速度可以更快。

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [2023年三月29日 13:13 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/12 "2023-03-29T13:13:59Z")

</div>

您好，感谢您的回复！没关系，我现在可以暂时禁用它，或者如果需要，我可以暂时从旧版本中分叉（fork）出来。

您是否考虑过将此提交为上游 Discourse 应用的拉取请求（PR），以分担维护负担？这确实是 Discourse 的一个主要限制，管理员必须在允许不受信任的用户组发送私人消息（这是一个非常糟糕的主意，我曾在非 Discourse 论坛上遭受过大规模的私人消息垃圾邮件攻击）和不允许新用户联系工作人员之间做出选择。自从迁移到 Discourse 以来，我已经处理了大量新用户试图联系我但无法联系的新用户（公开）问题。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2023年三月29日 13:46 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/13 "2023-03-29T13:46:57Z")

</div>

> [@rahim123](#):
>
> 您是否考虑过将此作为 PR 提交到上游 Discourse 应用，以分担维护负担？

我六年前开发的这个插件。虽然我没有明确询问过，但一直没有表现出兴趣。

> [@rahim123](#):
>
> 这是 Discourse 的一个主要限制，即管理员必须在允许不受信任的用户组使用 PM 之间做出选择

我有点惊讶，竟然没有更多人对这样的功能感兴趣，但我最近几周才注意到有其他人使用它，也许是因为它现在才起作用。

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [2023年四月7日 20:01 UTC](https://meta.discourse.org/t/problems-changing-the-minimum-trust-level-pms-and-flags/172627/14 "2023-04-07T20:01:06Z")

</div>

你好，Jay，今天我又看到了一些关于该插件的新提交。值得再试一次吗？我是否需要配置任何设置才能让所有拥有活动账户的用户都能联系到我（管理员）？
