
Phase 5 → File 05 → ChatGPT

# ROLE-BASED VISIBILITY & ACCESS CONTROL IMPROVEMENT

You are a senior system architect.

Improve my system so that:

1. Admin:
   - Can view all warehouses
   - Can view all inventory
   - Can approve partners
   - Can assign warehouse

2. Zonal:
   - Can only see their warehouse
   - Can record sales
   - Can view their target progress

3. State:
   - Same as zonal but limited to state warehouse

4. Local:
   - Can record sales only
   - No warehouse visibility

5. Advert Center:
   - View-only dashboard

Output:
- Middleware logic explanation
- Policy structure
- Controller filtering strategy
- API security best practices

Keep it clean and MVP-focused.

# ROLE-BASED VISIBILITY WITH PERFORMANCE INTELLIGENCE

Improve role system to include:

Admin:
- View partner ranking
- View product performance analytics
- View compliance leaderboard
- View projected return liability (company-wide)

Zonal/State:
- View personal performance scorecard
- View projected target forecast
- Access return simulation tool
- View compliance score

Local:
- Record sales
- View limited performance summary only

Advert Center:
- View-only access to performance dashboard

Output:
- Middleware structure
- Policy rules
- Controller filtering logic
- Secure data aggregation strategy