|
### Eclipse Workspace Patch 1.0
|
|
#P igeworkspace42
|
|
Index: typo3/mod/user/ws/class.wsstagelib.php
|
|
===================================================================
|
|
--- typo3/mod/user/ws/class.wsstagelib.php (revision 416)
|
|
+++ typo3/mod/user/ws/class.wsstagelib.php (working copy)
|
|
@@ -164,7 +164,6 @@
|
|
} else {
|
|
// Check if the user has the permission to for the current stage
|
|
// If this next stage record is the first next stage after the current the user has always the needed permission
|
|
- //if($GLOBALS['BE_USER']->workspaceCheckStageForCurrent($nextStageRecord['uid']) || $stageId == $currentStageId) {
|
|
if($GLOBALS['BE_USER']->workspaceCheckStageForCurrent($stageId)) {
|
|
$nextStageArray[] = $nextStageRecord;
|
|
return $this->getNextStages($nextStageArray, $workspaceId, $nextStageRecord['uid']);
|
|
@@ -257,11 +256,14 @@
|
|
* @return string uid list of responsible be_users
|
|
*/
|
|
function getResponsibleUser($stageRespValue) {
|
|
+ $stageValuesArray = array();
|
|
$stageValuesArray = t3lib_div::trimExplode(',',$stageRespValue);
|
|
|
|
$beuserUidArray = array();
|
|
$begroupUidArray = array();
|
|
$subgroupUidArray = array();
|
|
+ $allBeUserArray = array();
|
|
+ $begroupUidList = array();
|
|
|
|
foreach($stageValuesArray as $key => $uidvalue) {
|
|
if(strstr($uidvalue, 'be_users') !== FALSE) { // Current value is a uid of a be_user record
|
|
@@ -292,6 +294,7 @@
|
|
|
|
function fetchGroups($grList,$idList='') {
|
|
global $TYPO3_CONF_VARS;
|
|
+ $this->userGroups = array();
|
|
|
|
$whereSQL = 'deleted=0 AND hidden=0 AND pid=0 AND uid IN ('.$grList.')';
|
|
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'be_groups', $whereSQL);
|