forked from extern/egroupware
Bugfix: user was not setted when forms were launched, this lett multiple users run the same activity on the same instance at the same time. WARNING:: You should recompile all your activities to fix the bug.
This commit is contained in:
parent
3edee1577f
commit
f8b10f7097
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
||||
}
|
||||
}
|
||||
// Set the current user for this activity
|
||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
||||
$instance->setActivityUser($activity->activityId,$user);
|
||||
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
||||
}
|
||||
}
|
||||
// Set the current user for this activity
|
||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
||||
$instance->setActivityUser($activity->activityId,$user);
|
||||
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
||||
}
|
||||
}
|
||||
// Set the current user for this activity
|
||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
||||
$instance->setActivityUser($activity->activityId,$user);
|
||||
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
||||
}
|
||||
}
|
||||
// Set the current user for this activity
|
||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
||||
$instance->setActivityUser($activity->activityId,$user);
|
||||
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
||||
}
|
||||
}
|
||||
// Set the current user for this activity
|
||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
||||
$instance->setActivityUser($activity->activityId,$user);
|
||||
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user