Disabling invitation feature

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 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 confirms the issue as a bug, and dan states that a fix has been committed and will be available in the next update. dan provides a link to the fix: https://github.com/discourse/discourse/pull/16014.

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. :frowning: 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:

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

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

1 Like

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!

2 Likes

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

5 Likes

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