Project

General

Profile

Bug #15114 » 0001678-lang_limit_del.patch

Administrator Admin, 2006-08-04 01:34

View differences:

t3lib/class.t3lib_tcemain.php (Arbeitskopie)
function deleteRecord($table,$uid, $noRecordCheck=FALSE, $forceHardDelete=FALSE,$undeleteRecord=FALSE) {
global $TCA;
// Checking if there is anything disallowing edit
$editAccess = $this->BE_USER->recordEditAccessInternals($table,$uid);
$uid = intval($uid);
if ($TCA[$table] && $uid) {
if ($noRecordCheck || $this->doesRecordExist($table,$uid,'delete')) {
if ($noRecordCheck || ($this->doesRecordExist($table,$uid,'delete') && $editAccess)) {
$this->clear_cache($table,$uid); // clear cache before deleting the record, else the correct page cannot be identified by clear_cache
$propArr = $this->getRecordProperties($table, $uid);
(1-1/6)