Skip to content

Commit

Permalink
[BUGFIX] Fix visibility of translate button in old PageLayoutView
Browse files Browse the repository at this point in the history
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: TYPO3com <noreply@typo3.com>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
  • Loading branch information
IndyIndyIndy authored and georgringer committed Mar 29, 2020
1 parent a244e1a commit 9ee8d7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typo3/sysext/backend/Classes/View/PageLayoutView.php
Expand Up @@ -216,6 +216,7 @@ public static function createFromDrawingConfiguration(DrawingConfiguration $draw
/** @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();
Expand Down

0 comments on commit 9ee8d7a

Please sign in to comment.