# Blocking PM to admin user

**URL:** <https://meta.discourse.org/t/blocking-pm-to-admin-user/45499>\
**Category:** Support\
**Created:** [June 9, 2016, 9:31pm UTC](https://meta.discourse.org/t/blocking-pm-to-admin-user/45499 "2016-06-09T21:31:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![SystemZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/systemz/32/88354_2.png) [@SystemZ](https://meta.discourse.org/u/SystemZ)\
**Post date:** [June 10, 2016, 12:24am UTC](https://meta.discourse.org/t/blocking-pm-to-admin-user/45499/5 "2016-06-10T00:24:27Z")

</div>

Ok, my bad ☹

If there is not such feature I want to write simple plugin to overwrite `disabled` state for send PM button which is checking user id or group id first.  
Is there any painless way to do that in JS/HTML? I’m not ruby person and simple solution which hides button but allows sending msg using API etc is ok for me. I want to just discourage people from writing to me, not necessary preventing them technically.

I’m searching how to start doing this, but I see there is a new API and I don’t know where to start. Can someone point me to right direction?

I saw:

[https://meta.discourse.org/t/how-to-override-an-existing-handlebars-template-from-plugin/10201/5?u=systemz](https://meta.discourse.org/t/how-to-override-an-existing-handlebars-template-from-plugin/10201/5)

But this means that I will need to copy-paste current template to my plugin? This can be a problem when updating to new Discourse version.

Are editing this lines could help me?

> <https://github.com/discourse/discourse/blob/df368ce25127f77717fd61c249b1cee6d90ea40c/app/assets/javascripts/discourse/controllers/composer.js.es6#L279>

> <https://github.com/discourse/discourse/blob/431179dd257d2412fcdd8212d22dac2e491231b6/app/assets/javascripts/discourse/templates/composer.hbs#L104>

---

_[View the full topic](https://meta.discourse.org/t/blocking-pm-to-admin-user/45499)._
