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

ACL Code Crashes CiviCRM For Some UF Group ACLs

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When using some profiles in non-registration contexts, the profiles will crash CiviCRM with a fatal when submitted. Error message is the "this profile cannot be used..." message. Which turns out to be bogus.

      Cause: CRM_ACL_BAO_ACL::group() returns the keys of a non-associative array rather than the values when there is an ACL granting access for all profiles to a role. This causes some UF ID to be out of range, and creates a bogus priv string upstream.

      Patch is enclosed.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              torenware Rob Thorne
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: