Bug #22665 » 14404-ws-view.patch
typo3/alt_clickmenu.php (working copy) | ||
---|---|---|
$lCP = $BE_USER->calcPerms(t3lib_BEfunc::getRecord('pages',($table=='pages'?$this->rec['uid']:$this->rec['pid'])));
|
||
|
||
// View
|
||
if (!in_array('view',$this->disabledItems)) {
|
||
if ($table=='pages') $menuItems['view']=$this->DB_view($uid);
|
||
if ($table==$GLOBALS['TYPO3_CONF_VARS']['SYS']['contentTable']) {
|
||
if (!in_array('view', $this->disabledItems)) {
|
||
if ($table=='pages') {
|
||
$workspaceId = (isset($this->rec['_ORIG_uid'])) ? $this->rec['_ORIG_uid'] : $uid;
|
||
$menuItems['view'] = $this->DB_view($workspaceId);
|
||
}
|
||
if ($table == $GLOBALS['TYPO3_CONF_VARS']['SYS']['contentTable']) {
|
||
$ws_rec = t3lib_BEfunc::getRecordWSOL($table, $this->rec['uid']);
|
||
$menuItems['view']=$this->DB_view($ws_rec['pid']);
|
||
$menuItems['view'] = $this->DB_view($ws_rec['pid']);
|
||
}
|
||
}
|
||
|
typo3/sysext/viewpage/view/index.php (working copy) | ||
---|---|---|
$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);
|
||
$access = is_array($this->pageinfo) ? 1 : 0;
|
||
$addCmd='';
|
||
|
||
// Workspace overlay
|
||
$this->id = (isset($this->pageinfo['_ORIG_uid'])) ? $this->pageinfo['_ORIG_uid'] : $this->id;
|
||
|
||
if ($this->id && $access) {
|
||
$addCmd = '&ADMCMD_view=1&ADMCMD_editIcons=1'.t3lib_BEfunc::ADMCMD_previewCmds($this->pageinfo);
|
||
}
|