Skip to content
Snippets Groups Projects
Commit 9ee8d7a8 authored by Christian Eßl's avatar Christian Eßl Committed by Georg Ringer
Browse files

[BUGFIX] Fix visibility of translate button in old PageLayoutView

The old, non-fluidbased PageLayoutView was missing the translate button
for editors, even when they had the right permissions to edit content,
because the property $pageinfo wasn't initialized early enough before
the permission check.

Resolves: #90874
Related: #90858
Releases: master
Change-Id: Ie6f4d1c0a1c2867978de87082e2a31f2907e2cdb
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63971


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarFrank Nägler <frank.naegler@typo3.org>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarFrank Nägler <frank.naegler@typo3.org>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent a244e1ad
Branches
Tags
No related merge requests found
......@@ -216,6 +216,7 @@ class PageLayoutView implements LoggerAwareInterface
/** @var PageLayoutView $pageLayoutView */
$pageLayoutView = GeneralUtility::makeInstance(self::class);
$pageLayoutView->id = $drawingConfiguration->getPageId();
$pageLayoutView->pageinfo = BackendUtility::readPageAccess($pageLayoutView->id, '');
$pageLayoutView->pageRecord = $drawingConfiguration->getPageRecord();
$pageLayoutView->option_newWizard = $drawingConfiguration->getShowNewContentWizard();
$pageLayoutView->defLangBinding = $drawingConfiguration->getDefaultLanguageBinding();
......
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