# PM 'Invite Others' button disabled when local logins disabled

**URL:** https://meta.discourse.org/t/pm-invite-others-button-disabled-when-local-logins-disabled/35031
**Category:** Bug
**Created:** [10월 28, 2015, 6:55오후 UTC](https://meta.discourse.org/t/pm-invite-others-button-disabled-when-local-logins-disabled/35031 "2015-10-28T18:55:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [10월 28, 2015, 6:55오후 UTC](https://meta.discourse.org/t/pm-invite-others-button-disabled-when-local-logins-disabled/35031/1 "2015-10-28T18:55:33Z")

</div>

I understand that disabling invites [is intended behaviour](https://meta.discourse.org/t/we-cant-invite-users-in-our-invite-only-instance-with-local-accounts-disabled/17202/9) when local logins are disabled, but it seems to have the knock on effect of removing any way to add a new user to a PM:

> <https://github.com/discourse/discourse/blob/8a5f8d62b2e07575db3581a80212e024610cfbba/app/assets/javascripts/discourse/templates/components/private-message-map.hbs#L22>

> <https://github.com/discourse/discourse/blob/e29fe77b4578c67e6d719e87e56833342797d7af/lib/guardian.rb#L215>

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10월 28, 2015, 8:24오후 UTC](https://meta.discourse.org/t/pm-invite-others-button-disabled-when-local-logins-disabled/35031/2 "2015-10-28T20:24:31Z")

</div>

Maybe, @techapj can you have a look?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [10월 30, 2015, 6:30오전 UTC](https://meta.discourse.org/t/pm-invite-others-button-disabled-when-local-logins-disabled/35031/3 "2015-10-30T06:30:43Z")

</div>

Fixed via:

[https://github.com/discourse/discourse/commit/9f8d6b6088912295421ebd04cf865677868a45ab](https://github.com/discourse/discourse/commit/9f8d6b6088912295421ebd04cf865677868a45ab)

* * *

Also note that now user will also be able to [invite _existing users_ to a topic](https://meta.discourse.org/t/user-invitation-poking-a-user-to-a-topic-is-now-live/27180) when local logins are disabled.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [10월 30, 2015, 6:41오전 UTC](https://meta.discourse.org/t/pm-invite-others-button-disabled-when-local-logins-disabled/35031/4 "2015-10-30T06:41:54Z")

</div>


