feat : generalize TaskDocumentProcessor for client tickets

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-15 19:28:04 +01:00
parent b6cfe9d7d4
commit 851953df1e
2 changed files with 35 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ use Symfony\Component\Serializer\Attribute\Groups;
new GetCollection(paginationEnabled: false, security: "is_granted('ROLE_USER')"),
new Get(security: "is_granted('ROLE_USER')"),
new Post(
security: "is_granted('ROLE_ADMIN')",
security: "is_granted('ROLE_ADMIN') or is_granted('ROLE_CLIENT')",
processor: TaskDocumentProcessor::class,
deserialize: false,
),