| @@ 297-302 (lines=6) @@ | ||
| 294 | $locations = []; |
|
| 295 | $spiInfo = $this->persistenceHandler->contentHandler()->loadContentInfo($contentInfo->id); |
|
| 296 | $content = $this->domainMapper->buildContentProxy($spiInfo, $prioritizedLanguages ?: []); |
|
| 297 | foreach ($spiLocations as $spiLocation) { |
|
| 298 | $location = $this->domainMapper->buildLocationWithContent($spiLocation, $content, $spiInfo); |
|
| 299 | if ($this->repository->canUser('content', 'read', $location->getContentInfo(), $location)) { |
|
| 300 | $locations[] = $location; |
|
| 301 | } |
|
| 302 | } |
|
| 303 | ||
| 304 | return $locations; |
|
| 305 | } |
|
| @@ 151-156 (lines=6) @@ | ||
| 148 | { |
|
| 149 | $contentInfoList = []; |
|
| 150 | $spiInfoList = $this->persistenceHandler->contentHandler()->loadContentInfoList($contentIds); |
|
| 151 | foreach ($spiInfoList as $id => $spiInfo) { |
|
| 152 | $contentInfo = $this->domainMapper->buildContentInfoDomainObject($spiInfo); |
|
| 153 | if ($this->repository->canUser('content', 'read', $contentInfo)) { |
|
| 154 | $contentInfoList[$id] = $contentInfo; |
|
| 155 | } |
|
| 156 | } |
|
| 157 | ||
| 158 | return $contentInfoList; |
|
| 159 | } |
|