Bug #21412 ยป saveviewWS.patch
typo3/alt_docnew.php 2009-10-31 14:53:45.000000000 +0100 | ||
---|---|---|
$CALC_PERMS = $BE_USER->calcPerms($calcPRec);
|
||
$hasAccess = $CALC_PERMS&2 ? 1 : 0;
|
||
$deleteAccess = $CALC_PERMS&4 ? 1 : 0;
|
||
$this->viewId = $calcPRec['uid'];
|
||
if($GLOBALS['BE_USER']->workspace != 0)
|
||
{
|
||
$orecord = t3lib_BEfunc::getLiveVersionOfRecord('pages',$calcPRec['uid'],'uid');
|
||
$this->viewId = $orecord['uid'] ? $orecord['uid'] : $calcPRec['uid'];
|
||
}
|
||
else
|
||
{
|
||
$this->viewId = $calcPRec['uid'];
|
||
}
|
||
} else {
|
||
$CALC_PERMS = $BE_USER->calcPerms(t3lib_BEfunc::getRecord('pages',$calcPRec['pid'])); // Fetching pid-record first.
|
||
$hasAccess = $CALC_PERMS&16 ? 1 : 0;
|