Authentication and User Permission Updates
Vansh, Kai
Overview
This ticket implements updates to authentication behavior, user permissions, and user status management. The goal is to ensure proper access control for the Admin page, correct default permissions for newly invited users, consistent login redirection, and accurate tracking of user status throughout the invite and verification process.
Task
Update authentication logic and user management to:
- Restrict Admin page access based on user permissions
- Assign default permissions to newly invited users
- Redirect users to the correct page after login
- Track and update user status during the invite and verification process
Task Breakdown
Admin Page Access Control
Default Permissions for Invited Users
Login Redirect Behavior
User Status Management
UI and Status Consistency
Acceptance Criteria
Authentication and User Permission Updates
Vansh, Kai
Overview
This ticket implements updates to authentication behavior, user permissions, and user status management. The goal is to ensure proper access control for the Admin page, correct default permissions for newly invited users, consistent login redirection, and accurate tracking of user status throughout the invite and verification process.
Task
Update authentication logic and user management to:
Task Breakdown
Admin Page Access Control
permissionsset toAdmincan access the Admin pagemiddleware.tsto enforce this restrictionDefault Permissions for Invited Users
permissionsattribute toUseruser_infotable during the invite processLogin Redirect Behavior
User Status Management
statustoPendingin theuser_infotablestatustoActiveUI and Status Consistency
Acceptance Criteria
permissions = Userin theuser_infotablestatus = Pendinguntil verification is completedstatusupdates toActive