Project

General

Profile

Feature #18994 » patch-bug8778.diff

Administrator Admin, 2010-06-03 14:42

View differences:

typo3/sysext/version/ext_conf_template.txt (revision 0)
# cat=basic//10; type=boolean; label= Show draft workspace: Show draft workspace in workspace menu
showDraftWorkspace = 0
t3lib/class.t3lib_userauthgroup.php (working copy)
*/
function checkWorkspace($wsRec,$fields='uid,title,adminusers,members,reviewers,publish_access,stagechg_notification') {
$retVal = FALSE;
// Show draft workspace only if enabled in version extension
if(t3lib_extMgm::isLoaded('version') ) {
$version_extconf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['version']);
if(!$version_extconf['showDraftWorkspace']) {
if (!is_array($wsRec)) {
if((string)$wsRec == '-1') {
return false;
}
} else {
if((string)$wsRec['uid'] == '-1') {
return false;
}
}
}
}
// If not array, look up workspace record:
if (!is_array($wsRec)) {
switch((string)$wsRec) {
(3-3/4)