Commit 4b08fc33 authored by Thomas Löffler's avatar Thomas Löffler

Get users for ownership from all storage PIDs

parent 42252f46
Pipeline #7002 passed with stages
in 6 minutes and 21 seconds
......@@ -169,6 +169,9 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
}
$owner = [];
if ($extension instanceof \T3o\TerFe2\Domain\Model\Extension and $extension->getFrontendUser()) {
$querySettings = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings::class);
$querySettings->setRespectStoragePage(false);
$this->ownerRepository->setDefaultQuerySettings($querySettings);
$owner = $this->ownerRepository->findOneByUsername($extension->getFrontendUser());
}
$versionHistoryCount = (!empty($this->settings['versionHistoryCount']) ? $this->settings['versionHistoryCount'] : 5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment