Bug #20525 » 11214.diff
typo3/sysext/fe_edit/view/class.tx_feedit_editpanel.php (Arbeitskopie) | ||
---|---|---|
* @return string The input content string, possibly with edit icons added (not necessarily in the end but just after the last string of normal content.
|
||
*/
|
||
public function editIcons($content, $params, array $conf=array(), $currentRecord='', array $dataArr=array(), $addUrlParamStr='', $table, $editUid, $fieldList) {
|
||
{
|
||
$row = $dataArr;
|
||
$rec = explode(':', $currentRecord);
|
||
if ($rec[0] != 'pages') {
|
||
if ($dataArr['pid']) {
|
||
$perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
|
||
$row = t3lib_BEfunc::readPageAccess($dataArr['pid'], $perms_clause);
|
||
}
|
||
}
|
||
$perms = $GLOBALS['BE_USER']->calcPerms($row);
|
||
if (!$GLOBALS['BE_USER']->isPSet($perms, $rec[0], 'edit'))
|
||
return '';
|
||
}
|
||
// Special content is about to be shown, so the cache must be disabled.
|
||
$GLOBALS['TSFE']->set_no_cache();
|
||
$style = $conf['styleAttribute'] ? ' style="' . htmlspecialchars($conf['styleAttribute']) . '"' : '';
|