Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16913

cronjobs/workflow.php, not enough rights to execute operation

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            op op
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m