# Send Invites button should not be visible if local logins are disabled

**URL:** <https://meta.discourse.org/t/send-invites-button-should-not-be-visible-if-local-logins-are-disabled/122054>\
**Category:** Bug\
**Created:** [7월 4, 2019, 2:19오전 UTC](https://meta.discourse.org/t/send-invites-button-should-not-be-visible-if-local-logins-are-disabled/122054 "2019-07-04T02:19:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JezPez](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jezpez/32/145071_2.png) [@JezPez](https://meta.discourse.org/u/JezPez)\
**Post date:** [7월 4, 2019, 3:31오전 UTC](https://meta.discourse.org/t/send-invites-button-should-not-be-visible-if-local-logins-are-disabled/122054/3 "2019-07-04T03:31:30Z")

</div>

We only have OAuth enabled through the plugin. So we have the site setting `enable_local_logins: false`

When I set this back to true, the pending invites appear.

This makes sense to me now. How could Discourse invite people if its own local logins are disabled?

The bug is that the Invite Users button should be hidden if `enable_local_logins: false`.

---

_[View the full topic](https://meta.discourse.org/t/send-invites-button-should-not-be-visible-if-local-logins-are-disabled/122054)._
