service create for user usage

This commit is contained in:
Yuri Kuznetsov
2025-07-24 19:37:46 +03:00
parent cce7ddbff2
commit 27227cf51d
2 changed files with 2 additions and 2 deletions
@@ -71,7 +71,7 @@ class MassDelete implements MassAction
throw new Forbidden("No mass-update permission.");
}
$service = $this->serviceFactory->create($entityType);
$service = $this->serviceFactory->createForUser($entityType, $this->user);
$repository = $this->entityManager->getRDBRepository($entityType);
@@ -88,7 +88,7 @@ class Processor
throw new Forbidden("No mass-update permission.");
}
$service = $this->serviceFactory->create($entityType);
$service = $this->serviceFactory->createForUser($entityType, $this->user);
$filteredData = $this->filterData($entityType, $data, $service);