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

ACLs not respected when viewing custom data set on an activity when activity is viewed from Manage Case screen

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.4
    • Fix Version/s: 4.6.4
    • Component/s: CiviCase
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Custom data set attached to an activity is given appropriate ACL permission settings so that a custom data set is viewable only by users with a specific role.

      When activities are found via search, then viewed, the ACLs are respected, and only the appropriate users are able to see the custom data.

      However, if the same user who is blocked from seeing the data when finding the activity through search attempts to view the activity by clicking on it by clicking the subject column link under Manage Case screen (list of activities in the case), all of the custom data is visible!

      NOTE: (dgg) The problem is that CRM/Case/Form/ActivityView.tpl gets value to display by calling CRM/Case/XMLProcessor.php - and getCustomData() in that class does NOT check permissions on the custom data group. CRM/Activity/Form/Activity.tpl provides the 'view activity' page for the non-case activity selector - and it uses CustomDataView.tpl and CRM_Core_BAO_CustomGroup::getTree() to retrieve properly permissioned custom data groups.

        Attachments

          Activity

            People

            • Assignee:
              rohan1990 Rohan Ramesh Katkar
              Reporter:
              princessang417 Angela Cacciola
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h