Bug #15114 » 0001678-lang_limit_del.patch
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);
|