CRM-594 user with smart group access gets fatal error accessing member of group

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None

      Description

      I created a smart group and a role with access to only that smart group
      when a user with that role accesses CRM and clicks on a contact returned in a search the following error is returned

      Fatal error: Class 'CRM_Contact_BAO_SavedSearch' not found in /var/www/dev.greenparty.ca/html/modules/civicrm/CRM/Core/Permission/Drupal.php on line 140

        Attachments

          Activity

          [CRM-594] user with smart group access gets fatal error accessing member of group
          Donald A. Lobo added a comment -

          Fixed. will do a release shortly. the patch is:

          add the foll to CRM/Core/Permission/Drupal.php

          on lines: 139 AND 163 (approx, before the call to: CRM_Contact_BAO_SavedSearch::whereClause)

          require_once 'CRM/Contact/BAO/SavedSearch.php';

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Neil Adair

              Dates

              • Created:
                Updated:
                Resolved: