Commit 753b847f authored by Thomas Löffler's avatar Thomas Löffler

Shows owner information for security team members

parent e015be42
Pipeline #1977 passed with stages
in 1 minute and 25 seconds
......@@ -88,6 +88,9 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
$this->versionRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\VersionRepository::class);
$this->authorRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\AuthorRepository::class);
$this->ownerRepository = $this->objectManager->get(\TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository::class);
$querySettings = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface::class);
$querySettings->setRespectStoragePage(false);
$this->ownerRepository->setDefaultQuerySettings($querySettings);
$this->providerManager = $this->objectManager->get(\T3o\TerFe2\Provider\ProviderManager::class);
$this->session = $this->objectManager->get(\T3o\TerFe2\Persistence\Session::class);
$this->persistenceManager = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager::class);
......
......@@ -7,10 +7,6 @@
<dd><f:format.date format="%d. %b %Y">{extension.crdate}</f:format.date></dd>
<dt><f:translate key="downloads" /></dt>
<dd><f:format.number decimals="0" thousandsSeparator="," decimalSeparator=".">{extension.downloads}</f:format.number></dd>
<f:security.ifHasRole role="{settings.reviewerGroupUid}">
<dt>Owner:</dt>
<dd>Name: {owner.name}<br />Email: {owner.email}<br />Username: {owner.username}</dd>
</f:security.ifHasRole>
<dt><f:translate key="category" /></dt>
<dd>
<f:if condition="{extension.lastVersion.emCategory}">
......
......@@ -7,6 +7,23 @@
<f:if condition="{extension}">
<f:then>
<tl:titleTag>{extension.lastVersion.title} ({extension.extKey})</tl:titleTag>
<f:security.ifHasRole role="{settings.reviewerGroupUid}">
<div class="alert alert-info mb-3" role="alert">
<div class="media">
<f:format.raw>
<tl:gravatar emailAddress="{owner.email}" size="125" />
</f:format.raw>
<div class="media-body ml-5">
<h4>Owner of this extension</h4>
<p>
<strong>Name:</strong> {owner.name}<br>
<strong>Email:</strong> <f:link.email email="{owner.email}">{owner.email}</f:link.email><br>
<strong>Username:</strong> {owner.username}
</p>
</div>
</div>
</div>
</f:security.ifHasRole>
<f:if condition="{extension.lastVersion.reviewState} == -2">
<div class="alert alert-warning mt-3 mb-3" role="alert">
<h4 class="alert-header">
......
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