# 允许PM给员工

**URL:** <https://meta.discourse.org/t/allow-pm-to-staff/260946>\
**Category:** Plugin\
**Created:** [2023年四月7日 14:52 UTC](https://meta.discourse.org/t/allow-pm-to-staff/260946 "2023-04-07T14:52:28Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)\
**Post date:** [2025年十二月22日 01:22 UTC](https://meta.discourse.org/t/allow-pm-to-staff/260946/18 "2025-12-22T01:22:11Z")

</div>

是的，它仍然是针对已登录用户的。

该插件允许通常不允许向某人发送私信的已登录用户向 ` @staff` 组中的人员发送私信。不幸的是，它对匿名用户（即未登录的用户）没有任何作用。

这就是我使用这个小技巧的原因：

> [@Allow email in for moderators, staff, and admins](https://meta.discourse.org/t/allow-email-in-for-moderators-staff-and-admins/212147/3):
>
> Well, since nobody told me that was completely stupid, I’ve gone and tested this rails command on a little used instance. And it seems to work (so far)! bangbang Use at your own risk and backup first To add an email-in address Group.where(name: "=groups.name=").update(incoming\_email: "=groups.name=@=domain=") To remove an email-in address Group.where(name: "=groups.name=").update(incoming\_email: nil)

我多年来一直使用它，没有遇到任何问题（除了偶尔的垃圾邮件）。

---

_[View the full topic](https://meta.discourse.org/t/allow-pm-to-staff/260946)._
