How do I make sure temporary staff can only see their assigned jobs in an app I build with AI?
Define access rules before building the screens, and get a qualified technical reviewer to verify their enforcement before using real business data. Hiding a button or filtering a dashboard is not sufficient protection.
Vibe Engineering by Tomasz Lelek emphasizes human-authored, executable specifications. Apply that principle by writing access rules in business language, then requiring the builder to turn them into repeatable checks.
For a job coordination app, specify who can view, create, change, export, and delete each type of record. Include attachments and customer contact details, not just the main job screen.
- Temporary staff can view only jobs currently assigned to them.
- Reassigning a job removes the previous worker's access.
- Supervisors can access only the teams they manage.
- Disabled accounts cannot retrieve records through old links.
- Exports follow the same access restrictions as on-screen views.
These are example rules to adapt, not a universal permission model. Your actual rules should reflect how responsibility works in your business.
Ask the reviewer to check that the server or database rejects unauthorized requests, even when someone bypasses the normal screen. Have them verify direct links, attachment downloads, and attempts to request another person's records.
My recommendation: start with the smallest necessary access for each role and expand deliberately. Keep account administration under business control, assign someone to remove departing workers, and require another access review whenever the app adds a new role, export, or data source.
Category: Vibe Coding for Non-Developers