# 用户无法将他人添加到私人消息中

**URL:** <https://meta.discourse.org/t/users-unable-to-add-others-to-a-personal-message/97671>\
**Category:** Support\
**Created:** [2018年九月20日 16:11 UTC](https://meta.discourse.org/t/users-unable-to-add-others-to-a-personal-message/97671 "2018-09-20T16:11:22Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2020年九月5日 00:10 UTC](https://meta.discourse.org/t/users-unable-to-add-others-to-a-personal-message/97671/27 "2020-09-05T00:10:39Z")

</div>

我今天早些时候也调查过类似的问题：[https://meta.discourse.org/t/unable-to-add-user-to-pm-topic/162945。在那种情况下，我发现的问题是，如果“每日最大邀请数”设置为](https://meta.discourse.org/t/unable-to-add-user-to-pm-topic/162945%E3%80%82%E5%9C%A8%E9%82%A3%E7%A7%8D%E6%83%85%E5%86%B5%E4%B8%8B%EF%BC%8C%E6%88%91%E5%8F%91%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98%E6%98%AF%EF%BC%8C%E5%A6%82%E6%9E%9C%E2%80%9C%E6%AF%8F%E6%97%A5%E6%9C%80%E5%A4%A7%E9%82%80%E8%AF%B7%E6%95%B0%E2%80%9D%E8%AE%BE%E7%BD%AE%E4%B8%BA) 0，普通用户无法邀请用户加入私信。而在您的案例中，问题可能出在“启用私信”这一站点设置上。当该设置被禁用时，只有管理员可以向现有私信中添加用户。如果“启用私信”被禁用，版主也无法向私信中添加用户。

您能否再次确认一下，管理员是否能够在您的网站上向私信中添加用户？要实现这一点，管理员必须是发起该私信的用户。

我相当确定这种行为是有意为之，因为代码中已明确写入。我不确定在禁用“启用私信”站点设置时，阻止版主向私信中添加用户背后的考量是什么。这或许是可以更改的。

我会在我们的开发者这里留个备注，以防有人想查看。问题出现在这里：[discourse/lib/guardian.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/lib/guardian.rb#L357%E3%80%82)

---

_[View the full topic](https://meta.discourse.org/t/users-unable-to-add-others-to-a-personal-message/97671)._
