contentaccess-01.diff

Administrator Admin, 2007-04-12 20:23

Download (1.27 KB)

View differences:

class.tx_cms_layout.php (working copy)
1546 1546
			$this->getProcessedValue('tt_content','hidden,starttime,endtime,fe_group,spaceBefore,spaceAfter,section_frame,sectionIndex,linkToTop',$row,$info);
1547 1547

  
1548 1548
				// Render control panel for the element:
1549
			if ($this->tt_contentConfig['showCommands'] && $this->doEdit)	{
1549
                    //additional Accesscheck - if no access there will be no control panel
1550
			if ($GLOBALS['BE_USER']->recordEditAccessInternals('tt_content',$this->tt_contentData['nextThree'][$row['uid']])
1551
             && $this->tt_contentConfig['showCommands'] && $this->doEdit)	{
1550 1552

  
1551 1553
					// Start control cell:
1552 1554
				$out.= '
......
2161 2163
		$this->counter++;
2162 2164

  
2163 2165
			// The icon with link
2164
		$theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($iconImg,$table,$row['uid']);
2166
                //additional Accesscheck - if no access there will be no click menu    
2167
		$theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($iconImg,$table,
2168
            $GLOBALS['BE_USER']->recordEditAccessInternals('tt_content',$this->tt_contentData['nextThree'][$row['uid']])? $row['uid'] : 0);
2165 2169

  
2166 2170
		return $theIcon;
2167 2171
	}