# Disabling registrations while allowing private invites

**URL:** <https://meta.discourse.org/t/disabling-registrations-while-allowing-private-invites/403941>\
**Category:** Bug\
**Tags:** invites, fixed\
**Created:** [May 27, 2026, 6:45pm UTC](https://meta.discourse.org/t/disabling-registrations-while-allowing-private-invites/403941 "2026-05-27T18:45:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [July 25, 2026, 3:02pm UTC](https://meta.discourse.org/t/disabling-registrations-while-allowing-private-invites/403941/2 "2026-07-25T15:02:39Z")

</div>

Hello @Leaderboard

I think you’ve just discovered a genuine bug 🙂

I’ve made a fix for it here

> <https://github.com/discourse/discourse/pull/42026>
>
> Previously, when \`allow\_new\_registrations\` was disabled, \`InvitesController\` blo…cked every visitor to an invite link, including already-registered users, who saw a "new account registrations not allowed" error even though they were not creating an account.
>   
> This change skips the registration guard for logged-in users, so existing users can accept invites (for example, to join a group) while new-account signup stays closed.

---

_[View the full topic](https://meta.discourse.org/t/disabling-registrations-while-allowing-private-invites/403941)._
