Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
4.4.0alpha3
-
None
-
Operating System: MacOS
PHP Version: 5.2.11
Database and version: Mysql 5.0.86
Browser (and version): firefox 3.6.3
Description
Hi,
I created a new workflow event to approve new locations. Several kernel bugs have been fix and the last one is the workflow.php script that executes the operation, but have not enought rights to add the new location.
Here is a little patch that allow the process user to execute the operation :
In script cronjobs/workflow.php, at line 120, before "$operationResult = eZOperationHandler::execute(..);
Add theses lines :
>>>
$current_user = eZUser::fetch($process->attribute('user_id'));
$logged_in_user = eZUser::setCurrentlyLoggedInUser( $current_user, $process->attribute('user_id') );
$cli->output( "Current Logged In User: ". $current_user->attribute('login') );
Thanks to all the eZ Team,
Olivier