- Input
- A fictional invoicing app is used by many small firms.
- Assumption
- Every record carries the firm it belongs to.
What happens
- A user signs in and the app learns which firm they belong to.
- Every request is checked against that firm.
- The user can list, open and change only that firm's invoices.
- Another firm's invoices are never returned, even if an ID is guessed.
- Result
- Many firms share one app and none see each other's data.
- Where it stops
- This must be designed and tested from the start. It is hard to add after launch.