Update authorization helper interface in export classes

Replaced `AuthorizationHelperForCurrentUserInterface` with the more generic `AuthorizationHelperInterface` in tests and export helpers. Adjusted method signatures to include the `User` parameter for scope retrieval. Removed unused `centers` mapping in `ListActivity`.
This commit is contained in:
2025-06-17 15:35:04 +02:00
parent 4206d17345
commit 9a50dad671
3 changed files with 9 additions and 8 deletions

View File

@@ -118,8 +118,6 @@ final readonly class ListActivity implements ListInterface, GroupedExportInterfa
public function initiateQuery(array $requiredModifiers, array $acl, array $data, ExportGenerationContext $context): \Doctrine\ORM\QueryBuilder
{
$centers = array_map(static fn ($el) => $el['center'], $acl);
$qb = $this->entityManager->createQueryBuilder();
$qb