protected filterPermittedFluidContentTypesByUserGroupAccessList ( array $items, TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController $parentObject ) : array | ||
$items | array | |
$parentObject | TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController | |
return | array |
protected function filterPermittedFluidContentTypesByUserGroupAccessList(array $items, $parentObject)
{
$filter = $this->getContentTypeFilter((array) $GLOBALS['TCA']['tt_content']['columns']['tx_fed_fcefile']['config']['items']);
list($blacklist, $whitelist) = $filter->extractBlacklistAndWhitelistFromCurrentBackendUser();
// Filter by which fluidcontent types are allowed by backend user group
$items = $this->applyWhitelist($items, (array) $whitelist);
$items = $this->applyBlacklist($items, (array) $blacklist);
return $items;
}