Make invite-only decide new accounts' role and let admins switch it

Đang mở
#9,497 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@aglinxinyuan đang làm issue này rồi.

Từ ngày 16/11/2026.

  • #9498 của @aglinxinyuan — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Feature Summary

USER_SYS_INVITE_ONLY only decides whether the browser shows the pending-approval screen. The backend gives every new account INACTIVE whatever the flag says, so with invite-only off a new user signs in to a dashboard where every request is refused (the symptom reported in #7185). The flag is also read once at startup, so changing it means editing the deployment and restarting.

A new account, while invite-only is Now Proposed
off INACTIVE; told to contact an administrator; every dashboard request refused REGULAR; opens the dashboard
on INACTIVE; pending-approval screen unchanged
Proposed Solution or Design
  • Invite-only decides the role a new account starts with: REGULAR when off, INACTIVE until an admin approves it on the Users page when on. This covers local sign-up, the first Google or Apple sign-in, and a sign-up that claims a dataset-contributor placeholder. Accounts already waiting for approval are not promoted.
  • The flag becomes an admin-editable site setting, invite_only, read on every sign-up. Admin → Settings gets a Registration card with an Invite Only switch. USER_SYS_INVITE_ONLY sets the starting value, like the other settings on that page.
  • Invite-only is on by default, because a REGULAR account can run code on the server. Opening sign-up is then a deployment's explicit choice.
  • The sign-up page stops telling users to contact an administrator when their account is already usable.
Affected Area

Deployment / Infrastructure, Other

Ngôn ngữ chính
Scala
Star
333
Fork
202
Merge trung bình
3 ngày 11 giờ
Pull request đã merge (30 ngày)
185

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/texera

Tất cả issue của apache/texera

Issue tương tự

Thêm issue về Scala

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.