feat: company scoping (INS and CV, super admins see all) #25

Merged
ngqile merged 24 commits from add-company-scoping into main 2026-11-30 13:38:08 +00:00
Showing only changes of commit bb9d4357af - Show all commits
@@ -55,7 +55,7 @@ Design: `design.md`. All tasks run serially, ordered so that sign-in keeps worki
- the login response carries the company and `isSuper`.
- Scope: `solvway-mobile-api/src/**`
- Verify: `mvn -T 1C -B -q -pl solvway-mobile-api -am verify`
- [ ] 3.2 Users, roles, interests and login-security settings (decisions 1, 4 and 8).
- [x] 3.2 Users, roles, interests and login-security settings (decisions 1, 4 and 8).
- Tests first:
- users are listed, created and edited within the scope, and another company's user answers 404;
- a username with `@` is refused;
@@ -65,7 +65,7 @@ Design: `design.md`. All tasks run serially, ordered so that sign-in keeps worki
- unlock works only within the caller's company.
- Scope: `solvway-mobile-api/src/**`
- Verify: `mvn -T 1C -B -q -pl solvway-mobile-api -am verify`
- [ ] 3.3 Events, leads, event leads and exports (decision 6).
- [x] 3.3 Events, leads, event leads and exports (decision 6).
- Tests first:
- each list and export is limited to the scope;
- another company's event, lead or event lead answers 404 on detail, edit, capture and export;