Implement full multi-company architecture:
- Per-company directory structure (data/companies/{id}/)
- Automatic migration from single-tenant to multi-tenant
- Company management admin tab (create, edit, delete companies)
- Per-company IMAP mailbox configuration (multiple mailboxes per company)
- User access control per company (companies array on users)
- Company switcher in header (shown when user has access to >1 company)
- Session-based company context with check_auth fallback for old sessions
- Ticket list shows mailbox name instead of sender
- IMAP settings moved from global config to company-specific config
- All data endpoints protected with requireCompany() guard
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
136 B
JSON
8 lines
136 B
JSON
[
|
|
{
|
|
"id": "cuitunet",
|
|
"nimi": "CuituNet",
|
|
"luotu": "2026-03-10 08:58:43",
|
|
"aktiivinen": true
|
|
}
|
|
] |