galaxia workflow bugfix: non interactive activities should not set the user to the actual user, the user having the role on this activity (to make a manual send for example) can be a different one as this actual user is the one having a role on the prev interactive activity

This commit is contained in:
Régis Leroy 2005-05-11 14:23:23 +00:00
parent bd9f34dbd3
commit fd9d1b1ceb
5 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ if(empty($instance->instanceId)) {
}
}
// Set the current user for this activity
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
if(isset($GLOBALS['user']) && ($activity->isInteractive()) && !empty($instance->instanceId) && !empty($activity_id)) {
$instance->setActivityUser($activity_id,$GLOBALS['user']);
}

View File

@ -13,7 +13,7 @@ if(empty($instance->instanceId)) {
}
}
// Set the current user for this activity
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
if(isset($GLOBALS['user']) && ($activity->isInteractive()) && !empty($instance->instanceId) && !empty($activity_id)) {
$instance->setActivityUser($activity_id,$GLOBALS['user']);
}

View File

@ -13,7 +13,7 @@ if(empty($instance->instanceId)) {
}
}
// Set the current user for this activity
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
if(isset($GLOBALS['user']) && ($activity->isInteractive()) && !empty($instance->instanceId) && !empty($activity_id)) {
$instance->setActivityUser($activity_id,$GLOBALS['user']);
}

View File

@ -13,7 +13,7 @@ if(empty($instance->instanceId)) {
}
}
// Set the current user for this activity
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
if(isset($GLOBALS['user']) && ($activity->isInteractive()) && !empty($instance->instanceId) && !empty($activity_id)) {
$instance->setActivityUser($activity_id,$GLOBALS['user']);
}

View File

@ -13,7 +13,7 @@ if(empty($instance->instanceId)) {
}
}
// Set the current user for this activity
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
if(isset($GLOBALS['user']) && ($activity->isInteractive()) && !empty($instance->instanceId) && !empty($activity_id)) {
$instance->setActivityUser($activity_id,$GLOBALS['user']);
}