# Is it possible to disable private messaging for a specific user?

**URL:** <https://meta.discourse.org/t/is-it-possible-to-disable-private-messaging-for-a-specific-user/46391>\
**Category:** Product Support\
**Created:** [24.Июнь.2016 08:59:07 UTC](https://meta.discourse.org/t/is-it-possible-to-disable-private-messaging-for-a-specific-user/46391 "2016-06-24T08:59:07Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [06.Октябрь.2017 08:58:04 UTC](https://meta.discourse.org/t/is-it-possible-to-disable-private-messaging-for-a-specific-user/46391/27 "2017-10-06T08:58:04Z")

</div>

I have the initial implementation up @

[https://github.com/discourse/discourse/pull/5226](https://github.com/discourse/discourse/pull/5226)

However, I’m still quite uncertain what we should do about existing PMs with the user in it. Here is what I think should happen for the following scenarios when `User A` disables private messages:

#### PM between `User A` and `User B`

`User B` will not be able to create new replies in the PM

#### PM between `User A` and `Non staff group`

`User B` and members in `Non staff group` will not be able to create new replies in the PM

#### As long as a staff group or user is in the PM

No restrictions on new replies

When I was looking through the code path, I realized that the muted users features have this same problem as well. We only prevent muted users from creating new PMs to the target user but the muted user is still free to add replies to existing PMs.

While I discussed this @sam internally, I’m actually leaning towards adding a feature that allows a user to leave a PM instead. That will allow existing PMs to carry on as per normal without having to handle the above scenarios and add overhead to our `PostCreator` class.

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-disable-private-messaging-for-a-specific-user/46391)._
