Project

General

Profile

Bug #23131 » 15048.diff

Administrator Admin, 2010-07-08 16:20

View differences:

typo3/mod/user/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;
}
}
(1-1/2)