nordabiz/blueprints/public
Maciej Pienczyn 1598f93c58 feat: multi-company switcher backend (helper, context processor, switch endpoint, session init)
- Add helpers/company_context.py with get_active_company_id() fallback logic
- Add inject_company_context() context processor to app.py (user_companies, active_company, has_multiple_companies)
- Add /api/switch-company/<id> POST endpoint in public blueprint
- Set session['active_company_id'] on login (both standard and 2FA paths)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 13:52:27 +02:00
..
__init__.py feat(company): add team management for company MANAGERs 2026-04-02 14:44:05 +02:00
CLAUDE.md chore: Clean up CLAUDE.md files and remove old downloaded files 2026-02-08 18:02:35 +01:00
routes_announcements.py security(permissions): restrict guest access to members-only areas 2026-03-19 16:23:56 +01:00
routes_company_edit.py improve(company): add user feedback for logo upload and conversion 2026-04-08 14:30:33 +02:00
routes_pej.py fix(pej): use PostgreSQL @> operator for ARRAY contains query 2026-03-16 18:35:21 +01:00
routes_rss.py fix(calendar): use external_source as organizer for external events 2026-03-19 10:56:35 +01:00
routes_team.py feat(users): track who created each account (created_by_id) 2026-04-06 12:48:48 +02:00
routes_zopk.py fix(zopk): Use is_admin instead of role=='admin' for admin gating 2026-02-09 16:33:14 +01:00
routes.py feat: multi-company switcher backend (helper, context processor, switch endpoint, session init) 2026-04-10 13:52:27 +02:00