Project

General

Profile

Bug #15114 » bug_1678_4.1.1.diff

Administrator Admin, 2007-07-02 18:34

View differences:

t3lib/class.t3lib_tcemain.php 2007-07-02 17:34:47.000000000 +0200
$destPid = $resolvedPid;
}
// Checking if there is anything else disallowing edit
$editAccess = $this->BE_USER->recordEditAccessInternals($table,$uid);
// Timestamp field:
$updateFields = array();
if ($TCA[$table]['ctrl']['tstamp']) {
......
// If moving is allowed, begin the processing:
if (!count($workspaceAccessBlocked)) {
if ($mayMoveAccess) {
if ($mayMoveAccess && $editAccess) {
if ($destPid>=0) { // insert as first element on page (where uid = $destPid)
if ($mayInsertAccess) {
if ($table!='pages' || $this->destNotInsideSelf($destPid,$uid)) {
......
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);
(3-3/6)