service create for user usage
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user