aglinxinyuan opened a new issue, #9497:
URL: https://github.com/apache/texera/issues/9497

   ### 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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to