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

aclWhereClause hook isn't called on CRM_Contact_Page_AJAX&fnName=getContactList

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.3.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Step to reproduce:

      create a module with

      function test_civicrm_aclWhereClause( $type, &$tables, &$whereTables, &$contactID, &$where ) {
      die ("Here be dragons");
      }

      And a user with access to civicrm but not access all contacts.

      When you do a contact/search, you die as expected, but if you use the autocomplete for relationship:

      http://example.crm/civicrm/ajax/rest?className=CRM_Contact_Page_AJAX&fnName=getContactList&json=1&context=relationship&rel=14_a_b&s=&limit=10&timestamp=1300024321779

      it doesn't (and doesn't return any contact).

      Is is the same issue for the list if you press enter
      http://example.crm/civicrm/contact/view/rel?snippet=4&type=Relationship&subType=14&qfKey=d400348b91fb59c001c4a80605484600_9778&cgcount=1

      X+

      P.S. For the love of API, why isn't it using the "get" function instead of that getContactList ? (if good reason, at least should migrate it to api v3, ping me if needed)

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: