Project

General

Profile

Bug #34156 » 0002-test.patch

Mario Näther, 2012-02-27 19:52

View differences:

t3lib/class.t3lib_tcemain.php
*/
function deleteRecord($table, $uid, $noRecordCheck = FALSE, $forceHardDelete = FALSE, $undeleteRecord = FALSE) {
// Checking if there is anything else disallowing deleting the record by checking if editing is allowed
$mayEditAccess = $this->BE_USER->recordEditAccessInternals($table, $uid, FALSE, $undeleteRecord, TRUE);
$forceOrUndelete = ($forceHardDelete || $undeleteRecord);
// Checking if there is anything else disallowing deleting the record by checking if editing is allowed
$mayEditAccess = $this->BE_USER->recordEditAccessInternals($table, $uid, FALSE, $forceOrUndelete, TRUE);
$uid = intval($uid);
if ($GLOBALS['TCA'][$table] && $uid) {
(2-2/2)