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

Anonymous drupal users see 'undefined index' error when registering for event when certain non-essential permissions aren't enabled

    Details

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

      Description

      If anonymous users haven't been given the 'view event info' AND 'view event participants' permissions, like 1619 of Activity.php generates an error and fails to create an activity record. The failure seems to stem from the fact that the event array created on line 1613 by getEvents() is empty, which is itself checkPermission() on line 319 of Event.php returns false.

      I've attached my temporary patch, which should prevent the error in the meantime, but is not a long term solution.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              delzhand Derek Adams
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified