Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11651

API job.process_mailing is prevented from delivering mails by ACL check when called from CLI

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: None
    • Component/s: CiviCRM API, CiviMail
    • Labels:
      None

      Description

      When calling job.process_mailing directly via CLI (using Drush), an ACL check is added to the SQL in CRM_Mailing_BAO_Job::runJobs() which prevents any mailing jobs being seen.

      $mailingACL = CRM_Mailing_BAO_Mailing::mailingACL('m');

      appends " AND ( 0 )" to the SQL query for jobs which should be run.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              xurizaemon Chris Burgess
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: