Bug #23131 » 15048.diff
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;
|
||
}
|
||
}
|
||