Skip to content

Invite-only registration-request form never appears: /config/user-system returns 403 for INACTIVE users #5587

Closed

Description

@aicam

What happened?

In an invite-only deployment, a freshly-registered user is INACTIVE until an admin approves them. While INACTIVE, the user cannot reach the @RolesAllowed("REGULAR", "ADMIN") config endpoints.

The frontend reads the inviteOnly flag from GET /config/user-system right after registration to decide whether to show the registration-request form (which collects the user's affiliation/reason and triggers the admin notification email).

#5305 moved /config/user-system from @PermitAll to @RolesAllowed("REGULAR", "ADMIN"). As a result, an INACTIVE user's request for inviteOnly returns 403, the flag is left undefined on the frontend, and:

  • the registration-request form never appears, and
  • no admin notification email is sent.

So in invite-only deployments, new sign-ups are silently dropped.

Expected: A newly-registered (INACTIVE) user can read the inviteOnly flag, the registration-request form appears, and the admin is notified.

How to reproduce?

  1. Deploy with user-system.conf set to invite-only (inviteOnly = true).
  2. Register a new account (the user is INACTIVE, pending admin approval).
  3. Observe that the registration-request form does not appear and no admin notification email is sent.
  4. Network tab shows GET /config/user-system returning 403 for the INACTIVE user.

Branch

main

What browsers are you seeing the problem on?

Chrome

Activity

  1. xuang7 commented on Jun 9, 2026

    @xuang7
    Contributor

    Test @aicam

  2. xuang7 commented on Jun 9, 2026

    @xuang7
    Contributor

    Test @aicam

  3. added a commit that references this issue on Jun 10, 2026
    9c19f3f
  4. added a commit that references this issue on Jun 10, 2026
    17607c5
  5. added a commit that references this issue on Jun 16, 2026
    ea25288
  6. added a commit that references this issue on Jun 22, 2026
    b687961
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions