Bug #23131 » 15048_v2.diff
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;
|
||
}
|
||
}
|
||
- « Previous
- 1
- 2
- Next »