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

Custom fields do not respect permissions when added to reports

    Details

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

      Description

      When a report class defines $_customGroupExtends and includes custom fields in Display Columns / Filters - users' permissions to access that custom data set should be checked and the fields should NOT be included if the user doesn't have access.

      To recreate the bug:

      • Modify sample custom data field - Donor Info->How Long Have You Been a Donor so that the field Is Searchable.
      • Create a Drupal role that has access CiviReport, access CiviContribute, view all contacts. BUT role does NOT have 'access all custom data'
      • Log in as that role and view or edit a contribution record. The Donor Info custom data set is NOT shown.
      • Now go to Donor Report (Detail)
      • The custom data set IS included in Display Columns and Filters AND values can be viewed on the report.

        Attachments

          Activity

            People

            • Assignee:
              rajan Rajan P Mayekar
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: