Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
[BUGFIX] Check content not page permission before rendering grid columns
Browse files Browse the repository at this point in the history
Change-Id: Iff1dad1b40f3289cc61452504ad2857df87c2749
Resolves: #76572
Releases: master, 7-0
Reviewed-on: https://review.typo3.org/49997
Reviewed-by: Jo Hasenau <info@cybercraft.de>
Tested-by: Jo Hasenau <info@cybercraft.de>
  • Loading branch information
Bunnyfield committed Sep 21, 2016
1 parent cd81176 commit b995683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Hooks/DrawItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ protected function renderSingleGridColumn(
$url = '';
$pageinfo = BackendUtility::readPageAccess($parentObject->id, '');
if ($colPos < 32768) {
if ($this->getPageLayoutController()->pageIsNotLockedForEditors()
if ($this->getPageLayoutController()->contentIsNotLockedForEditors()
&& $this->getBackendUser()->doesUserHaveAccess($pageinfo, Permission::CONTENT_EDIT)
&& (!$this->checkIfTranslationsExistInLanguage($items, $row['sys_language_uid'], $parentObject))
) {
Expand Down Expand Up @@ -543,7 +543,7 @@ protected function renderSingleGridColumn(
<div class="t3-page-ce t3js-page-ce t3js-page-ce-sortable' . $statusHidden . '" data-table="tt_content" data-uid="' . $itemRow['uid'] . '" data-container="' . $itemRow['tx_gridelements_container'] . '" data-ctype="' . $itemRow['CType'] . '"><div class="t3-page-ce-dragitem" id="' . str_replace('.',
'', uniqid('', true)) . '">' . $this->renderSingleElementHTML($parentObject,
$itemRow) . '</div></div>';
if ($this->getPageLayoutController()->pageIsNotLockedForEditors()
if ($this->getPageLayoutController()->contentIsNotLockedForEditors()
&& $this->getBackendUser()->doesUserHaveAccess($pageinfo, Permission::CONTENT_EDIT)
&& (!$this->checkIfTranslationsExistInLanguage($items, $row['sys_language_uid'], $parentObject))
) {
Expand Down

0 comments on commit b995683

Please sign in to comment.