Project

General

Profile

Bug #22339 » 13941.patch

Administrator Admin, 2010-03-29 11:02

View differences:

t3lib/class.t3lib_tcemain.php (working copy)
$brExist = $this->doesBranchExist('',$uid,$this->pMap['delete'],1); // returns the branch
if ($brExist != -1) { // Checks if we had permissions
if ($this->noRecordsFromUnallowedTables($brExist.$uid)) {
return t3lib_div::trimExplode(',',$brExist.$uid,1);
$pagesInBranch = t3lib_div::trimExplode(',',$brExist.$uid,1);
foreach($pagesInBranch as $pageInBranch) {
if(!$this->BE_USER->recordEditAccessInternals('pages', $pageInBranch, FALSE, TRUE, TRUE)) {
return 'Attempt to delete page without having permissions to do so. ['.$this->BE_USER->errorMsg.'].';
}
}
return $pagesInBranch;
} else return 'Attempt to delete records from disallowed tables';
} else return 'Attempt to delete pages in branch without permissions';
} else {
$brExist = $this->doesBranchExist('',$uid,$this->pMap['delete'],1); // returns the branch
if ($brExist == '') { // Checks if branch exists
if ($this->noRecordsFromUnallowedTables($uid)) {
return array($uid);
if($this->BE_USER->recordEditAccessInternals('pages', $uid, FALSE, TRUE, TRUE)) {
return array($uid);
} else return 'Attempt to delete page without having permissions to do so. ['.$this->BE_USER->errorMsg.'].';
} else return 'Attempt to delete records from disallowed tables';
} else return 'Attempt to delete page which has subpages';
}
t3lib/class.t3lib_userauthgroup.php (working copy)
if ($recordLocalizationAccess && t3lib_BEfunc::isTableLocalizable($table)) {
$pointerField = $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'];
$l10nTable = isset($GLOBALS['TCA'][$table]['ctrl']['transForeignTable']) ? $GLOBALS['TCA'][$table]['ctrl']['transForeignTable'] : $table;
$recordLocalizations = t3lib_BEfunc::getRecordsByField(
$table,
$l10nTable,
$pointerField,
$record[$pointerField] > 0 ? $record[$pointerField] : $record['uid'],
'',
......
$email_body.= date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'].' '.$GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'],$testRows['tstamp']).': '.@sprintf($testRows['details'],''.$theData[0],''.$theData[1],''.$theData[2]);
$email_body.= chr(10);
}
mail( $email,
t3lib_div::plainMailEncoded( $email,
$subject,
$email_body,
'From: TYPO3 Login WARNING<>'
(1-1/4)