Index: typo3_src-7.6.9/typo3/sysext/backend/Classes/View/PageLayoutView.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- typo3_src-7.6.9/typo3/sysext/backend/Classes/View/PageLayoutView.php (revision ) +++ typo3_src-7.6.9/typo3/sysext/backend/Classes/View/PageLayoutView.php (revision ) @@ -1425,22 +1425,26 @@ . $this->iconFactory->getIcon('actions-edit-' . strtolower($label), Icon::SIZE_SMALL)->render() . ''; } // Delete + $disableDeleteFlag = $this->getBackendUser()->getTSConfig('options.disableDelete'); + if($disableDeleteFlag['value']!='1') { - $params = '&cmd[tt_content][' . $row['uid'] . '][delete]=1'; - $confirm = $this->getLanguageService()->getLL('deleteWarning') - . BackendUtility::translationCount('tt_content', $row['uid'], (' ' - . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.translationsOfRecord'))); - $out .= '' - . $this->iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL)->render() . ''; - if ($out && $this->getBackendUser()->doesUserHaveAccess($this->pageinfo, Permission::CONTENT_EDIT)) { - $out = '
' . $out . '
'; - } else { - $out = ''; - } + $params = '&cmd[tt_content][' . $row['uid'] . '][delete]=1'; + $confirm = $this->getLanguageService()->getLL('deleteWarning') + . BackendUtility::translationCount('tt_content', $row['uid'], (' ' + . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.translationsOfRecord'))); + $out .= '' + . $this->iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL)->render() . ''; + if ($out && $this->getBackendUser()->doesUserHaveAccess($this->pageinfo, Permission::CONTENT_EDIT)) { + $out = '
' . $out . '
'; + } else { + $out = ''; + } + } + if (!$disableMoveAndNewButtons) { $moveButtonContent = ''; $displayMoveButtons = false;