2.9 KiB
2.9 KiB
Checklist: Systematic Permission Verification (103 Actions)
Phase 1: Test Environment Setup (Using Tinker)
- Create test accounts for all roles if they do not exist:
- ULTIMATE:
777(already exists). - SUPER_OPERATOR:
test_super_op - OPERATOR:
test_op - COORDINATOR:
test_coord - RIDER:
test_rider - POS_TERMINAL:
test_pos - USER:
test_user
- ULTIMATE:
- Ensure all test accounts use the password:
123123.
Phase 2: Role-Based Verification (ULTIMATE - 777)
- Auth: Login to
777with123123. Confirm success. - User Mgmt: Navigate to
/user-list. Verify full list of users is visible. - Action Group: Create User Checks
- Navigate to
/create-user. - Verify dropdown includes
ULTIMATE,SUPER_OPERATOR,OPERATOR,RIDER, etc. - Check if
CreateUserPOSTerminalaction is functional.
- Navigate to
- Action Group: Ultimate Tools Checks
- Navigate to
/ultimate-console. Confirm it loads with full stats and maintenance toggles.
- Navigate to
Phase 3: Role-Based Verification (SUPER_OPERATOR)
- Auth: Login to
test_super_op. - Blocking Check: Access
/ultimate-console. Confirm it redirects to/. - Action Group: Create User Checks
- Navigate to
/create-user. - Verify
ULTIMATEchoice is NOT in the role dropdown. - Verify
SUPER_OPERATORand others are visible.
- Navigate to
- Logistics: Access
/shipment-list. Verify if they can see shipments.
Phase 4: Role-Based Verification (OPERATOR)
- Auth: Login to
test_op. - Action Group: Create User Checks
- Navigate to
/create-user. - Verify only
COORDINATOR,SUPPLIER,STORE_OWNER,RIDER,POS_TERMINALare present (as perUserTypeService).
- Navigate to
- Action Group: Reports Checks
- Navigate to
/pos-history. Verify access per store context.
- Navigate to
Phase 5: Role-Based Verification (RIDER)
- Auth: Login to
test_rider. - Action: ViewShipments: Navigate to
/shipment-list.- Verify view status (per
UserPermissions.phproles array). - Document result: Allowed or Restricted?
- Verify view status (per
Phase 6: Role-Based Verification (POS_TERMINAL)
- Auth: Login to
test_pos. - UI Focus Check: Verify if "Pos Main" is the default or prioritized interface.
- Blocking Check: Attempt access to
/user-list. Verify if they are blocked.
Phase 7: Final Matrix Audit (All 103 Actions)
- Match each action in
UserActions.phpwith actual behavior in the UI. - Document all observed permission gaps (e.g.
UpdateShipmentStatusnot assigned toRIDER). - Verify for
PUBLICaccess (unauthenticated) that only marketplace and pos-start are reachable.
Phase 8: Dictionary Sync
- Update
ai-docs/dictionary.mdwith any findings or new established RBAC patterns. - Commit and push the dictionary update.