Project

General

Profile

Bug #17203 ยป contentaccess-01.diff

Administrator Admin, 2007-04-12 20:23

View differences:

class.tx_cms_layout.php (working copy)
$this->getProcessedValue('tt_content','hidden,starttime,endtime,fe_group,spaceBefore,spaceAfter,section_frame,sectionIndex,linkToTop',$row,$info);
// Render control panel for the element:
if ($this->tt_contentConfig['showCommands'] && $this->doEdit) {
//additional Accesscheck - if no access there will be no control panel
if ($GLOBALS['BE_USER']->recordEditAccessInternals('tt_content',$this->tt_contentData['nextThree'][$row['uid']])
&& $this->tt_contentConfig['showCommands'] && $this->doEdit) {
// Start control cell:
$out.= '
......
$this->counter++;
// The icon with link
$theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($iconImg,$table,$row['uid']);
//additional Accesscheck - if no access there will be no click menu
$theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($iconImg,$table,
$GLOBALS['BE_USER']->recordEditAccessInternals('tt_content',$this->tt_contentData['nextThree'][$row['uid']])? $row['uid'] : 0);
return $theIcon;
}
    (1-1/1)