Index: typo3_src-7.6.4/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- typo3_src-7.6.4/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php (revision ) +++ typo3_src-7.6.4/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php (revision ) @@ -1537,7 +1537,10 @@ $this->addActionToCellGroup($cells, $hideAction, 'hide'); } // "Delete" link: - if ($permsEdit && ($table === 'pages' && $localCalcPerms & Permission::PAGE_DELETE || $table !== 'pages' && $this->calcPerms & Permission::CONTENT_EDIT)) { + + $disableDeleteFlag = $this->getBackendUserAuthentication()->getTSConfig('options.disableDelete'); + + if ($permsEdit && ($table === 'pages' && $localCalcPerms & Permission::PAGE_DELETE || $table !== 'pages' && $this->calcPerms & Permission::CONTENT_EDIT) && $disableDeleteFlag['value']!=1) { // Check if the record version is in "deleted" state, because that will switch the action to "restore" if ($this->getBackendUserAuthentication()->workspace > 0 && isset($row['t3ver_state']) && (int)$row['t3ver_state'] === 2) { $actionName = 'restore'; @@ -1572,6 +1575,7 @@ } else { $deleteAction = $this->spaceIcon; } + $this->addActionToCellGroup($cells, $deleteAction, 'delete'); // "Levels" links: Moving pages into new levels... if ($permsEdit && $table == 'pages' && !$this->searchLevels) {