# Disabling invitation feature

**URL:** <https://meta.discourse.org/t/disabling-invitation-feature/218563>\
**Category:** Bug\
**Tags:** invites\
**Created:** [February 17, 2022, 3:41pm UTC](https://meta.discourse.org/t/disabling-invitation-feature/218563 "2022-02-17T15:41:04Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

A user reports a bug where the "Invite" feature remains visible to users with low trust levels, even when new registrations are disabled and the feature is restricted to higher trust levels. [meiadeleite](/t/-/218563/1) highlights that the invite button appears in the topic share popup for users below TL4, and attempting to use it results in an error. [tobiaseigen](/t/-/218563/2) confirms the issue as a bug, and [dan](/t/-/218563/5) states that a fix has been committed and will be available in the next update. [dan](/t/-/218563/5) provides a link to the fix: https://github.com/discourse/discourse/pull/16014.

<div class="post-metadata">

**Author:** ![meiadeleite](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meiadeleite/32/139417_2.png) [@meiadeleite](https://meta.discourse.org/u/meiadeleite)\
**Post date:** [February 17, 2022, 3:41pm UTC](https://meta.discourse.org/t/disabling-invitation-feature/218563/1 "2022-02-17T15:41:04Z")

</div>

Hi! We have a forum where the accounts come from another website (SSO), so new registrations are disabled. Despite this, the “Invite” feature is still showing for our members. ☹ I tried changing the min trust level to allow invite to TL4s, to minimize the number of people who see this feature, but the button is still shown to TL1-3s anyway:

 ![Screenshot 2022-02-17 at 15.27.41](https://global.discourse-cdn.com/meta/original/3X/e/f/ef536d73be28b019241f0cb9eefb1e99816a9299.png)

When they try to use the feature, an error is shown:

 ![Screenshot 2022-02-17 at 15.27.31](https://global.discourse-cdn.com/meta/original/3X/4/2/429daeb1de754ea6c7a2d8809efdb21cb8b87c64.png)

Is it possible to completely remove this feature from view, if the user doesn’t have access to it? Maybe I’m missing something. 😅

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [February 17, 2022, 3:47pm UTC](https://meta.discourse.org/t/disabling-invitation-feature/218563/2 "2022-02-17T15:47:10Z")

</div>

Good catch! This is a bug that I am able to reproduce. If you are not allowed to invite, you should not see the invite button on the topic share popup. We’ll get this fixed!

---

<div class="post-metadata">

**Author:** ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)\
**Post date:** [February 21, 2022, 9:58pm UTC](https://meta.discourse.org/t/disabling-invitation-feature/218563/5 "2022-02-21T21:58:18Z")

</div>

Hello Ana,

Thanks for the bug report. I have just committed a fix for the issue you described. Please update your site to get the fix:

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

---

<div class="post-metadata">

**Author:** ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)\
**Post date:** [February 26, 2022, 6:00am UTC](https://meta.discourse.org/t/disabling-invitation-feature/218563/6 "2022-02-26T06:00:07Z")

</div>

Closed on February 26, 2022, 6:00am UTC

This topic was automatically closed after 4 days. New replies are no longer allowed.
