You build a small app for teams. Each company signs up and sees its own projects, invoices and users. Your AI builder wrote the queries. Everything looks right in your own test account.
Then a customer from Company B sends a request that names a project id from Company A, and the app answers with the data.
Why it happens
Apps with many customers (called multi-tenant apps) need every query to say "only rows that belong to this customer". AI builders often add that filter to the main list page and forget it on the detail page, the export button, the search box or the API route behind a background job. One missing filter is enough.
How to check your own app
Create two test companies, A and B, each with a user and a few records.
Signed in as B, copy the id of one of B's records from the address bar or the network tab.
Sign in as A.…