Project

General

Profile

Bug #12307 » 12307_version_editing.patch

Sonja Schubert, 2011-01-18 21:54

View differences:

class.tx_version_tcemain.php (revision )
} elseif ($tcemainObj->checkRecordUpdateAccess($table, $id)) {
$record = t3lib_BEfunc::getRecord($table, $id);
$stat = $tcemainObj->BE_USER->checkWorkspace($record['t3ver_wsid']);
// check if the usere is allowed to the current stage, so it's also allowed to send to next stage
if ($GLOBALS['BE_USER']->workspaceCheckStageForCurrent($record['t3ver_stage'])) {
if (t3lib_div::inList('admin,online,offline,reviewer,owner', $stat['_ACCESS']) || ($stageId <= 1 && $stat['_ACCESS'] === 'member')) {
// Set stage of record:
$updateData = array(
't3ver_stage' => $stageId
(2-2/8)