Project

General

Profile

Bug #23131 » 15048_v2.diff

Administrator Admin, 2010-08-19 11:00

View differences:

typo3/sysext/version/ws/class.wslib.php (working copy)
function autoPublishWorkspaces() {
global $TYPO3_CONF_VARS;
// Temporarily set high power...
// Temporarily set admin rights
// FIXME: once workspaces are cleaned up a better solution should be implemented
$currentAdminStatus = $GLOBALS['BE_USER']->user['admin'];
$GLOBALS['BE_USER']->user['admin'] = 1;
// Select all workspaces that needs to be published / unpublished:
......
$tce->start(array(),$cmd);
$tce->process_cmdmap();
}
// Restore admin status
$GLOBALS['BE_USER']->user['admin'] = $currentAdminStatus;
}
}
(2-2/2)