Matthieu
|
808a290845
|
feat(client-portal) : phase 1 foundations — ROLE_CLIENT hardening + ClientTicket (back)
LST-69 (3.2) phase 1. New ClientPortal module + security foundations for the
client portal (spec docs/superpowers/specs/2026-03-15-client-portal-design.md).
- Security: User::getRoles() no longer adds ROLE_USER to ROLE_CLIENT users;
role_hierarchy ROLE_ADMIN: [ROLE_USER, ROLE_CLIENT]. Existing Task/Project/
Client/TimeEntry/metadata endpoints already required ROLE_USER -> a pure
ROLE_CLIENT is walled off (verified: 403).
- User (Core): client (ManyToOne ClientInterface, SET NULL) + allowedProjects
(ManyToMany ProjectInterface). UserInterface extended (getClient/
getAllowedProjects).
- New ClientTicket entity (module ClientPortal) + enums + repository + API with
per-client isolation (ClientTicketProvider: own tickets ∩ allowedProjects),
per-project numbering under advisory lock (rejects if user.client null),
status transition rules. ClientTicketInterface contract for Task/TaskDocument.
- TaskDocument generalized: task nullable + clientTicket (CASCADE) + CHECK;
per-role access. Task.clientTicket exposed in task:read.
- Additive migration; demo client fixtures.
- Tenancy tests assert the isolation invariant (a client never sees another
client's tickets) rather than brittle absolute counts (shared test DB).
178 tests green, mapping valid, cs-fixer clean.
|
2026-06-21 00:46:26 +02:00 |
|
Matthieu
|
544d4cf44f
|
feat(core) : gate sidebar by effective permissions
|
2026-06-19 17:28:42 +02:00 |
|
Matthieu
|
ac662e701b
|
feat(core) : aggregate module permissions and add sync-permissions command
|
2026-06-19 17:00:14 +02:00 |
|
Matthieu
|
ffed224979
|
feat(core) : add rbac role and permission entities with user relations
|
2026-06-19 16:56:07 +02:00 |
|
Matthieu
|
6ca91cbd3b
|
feat(core) : add CoreModule, user repository contract, notifier contract and enriched user contract
|
2026-06-19 15:53:38 +02:00 |
|
Matthieu
|
0ee82c8b62
|
feat(sidebar) : add role gate to sidebar provider and global nav config
|
2026-06-19 15:03:45 +02:00 |
|
Matthieu
|
b301c543bb
|
feat(shared) : add column comments catalog helper for migrations
|
2026-06-19 14:38:40 +02:00 |
|
Matthieu
|
3053c09522
|
feat(shared) : add timestampable/blamable trait and doctrine subscriber
|
2026-06-19 14:37:28 +02:00 |
|
Matthieu
|
52399b35d9
|
feat(sidebar) : expose GET /api/sidebar filtered by active modules
|
2026-06-19 14:35:17 +02:00 |
|
Matthieu
|
748289b61a
|
feat(modules) : expose GET /api/modules and module registry
|
2026-06-19 14:33:53 +02:00 |
|