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

Users whose permissions are set by ACL hook cannot send CiviMail

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2.5
    • Fix Version/s: 3.4.alpha
    • Component/s: CiviMail
    • Labels:
      None

      Description

      To reproduce
      Use an ACL hook to set users permissions - do not give View All Contacts.

      User can send CiviMail but even though they can see the recipients in CiviCRM when it is sent there are no recipients

      because there are no entries in civicrm_acl_cache & the contstructed query contains LEFT JOIN acl_civicrm_contact ON x = y WHERE contact_id = z returns nothing. I presume it must work for 'normal' ACLs but for those set by hooks it 'breaks' civi mail

      Attached patch is just how we fixed for our client but only disables ACL checking - not a real fix

        Attachments

          Activity

            People

            • Assignee:
              deepak Deepak Srivastava
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: