Project

General

Profile

Bug #22397 » 14028_variables.diff

Administrator Admin, 2010-04-07 18:01

View differences:

typo3_src.new/t3lib/class.t3lib_userauthgroup.php 2010-04-07 16:16:38.000000000 +0200
// Checking authMode fields:
if (is_array($TCA[$table]['columns'])) {
foreach($TCA[$table]['columns'] as $fN => $fV) {
if (isset($idOrRow[$fN])) { //
if ($fV['config']['type']=='select' && $fV['config']['authMode'] && !strcmp($fV['config']['authMode_enforce'],'strict')) {
if (!$this->checkAuthMode($table,$fN,$idOrRow[$fN],$fV['config']['authMode'])) {
$this->errorMsg = 'ERROR: authMode "'.$fV['config']['authMode'].'" failed for field "'.$fN.'" with value "'.$idOrRow[$fN].'" evaluated';
foreach($TCA[$table]['columns'] as $fieldName => $fieldValue) {
if (isset($idOrRow[$fieldName])) { //
if ($fieldValue['config']['type']=='select' && $fieldValue['config']['authMode'] && !strcmp($fieldValue['config']['authMode_enforce'],'strict')) {
if (!$this->checkAuthMode($table,$fieldName,$idOrRow[$fieldName],$fieldValue['config']['authMode'])) {
$this->errorMsg = 'ERROR: authMode "'.$fieldValue['config']['authMode'].'" failed for field "'.$fieldName.'" with value "'.$idOrRow[$fieldName].'" evaluated';
return FALSE;
}
}
......
*/
function isPSet($lCP,$table,$type='') {
if ($this->isAdmin()) return true;
if ($table=='pages') {
if ($type=='edit') return $lCP & 2;
if ($type=='new') return ($lCP & 8) || ($lCP & 16); // Create new page OR pagecontent
if ($type=='delete') return $lCP & 4;
if ($type=='editcontent') return $lCP & 16;
if ($table == 'pages') {
switch($type) {
case 'edit':
return $lCP & 2;
break;
case 'new':
return ($lCP & 8) || ($lCP & 16); // Create new page OR pagecontent
break;
case 'delete':
return $lCP & 4;
break;
case 'editcontent':
return $lCP & 16;
break;
}
} else {
return $lCP & 16;
}
(2-2/9)