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

CiviEvent shopping cart - add to cart results in 'You do not have permission to execute this url'

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.4.1
    • Fix Version/s: 4.4.4
    • Component/s: CiviEvent
    • Labels:

      Description

      I turned on the CiviEvent Component to allow adding events to cart, and after pressing the 'Add to Cart' button got the message "You do not have permission to execute this url". After adding 'add_to_cart' to this array in civicrm_check_permission it works, but I assume this has to do with civi_wp; this isn't a problem in civicrm 4.4.3 with wordpress 3.8.

      Below is code from civicrm.php/civicm_check_permissions(), I added 'add_to_cart'

      // an event registration page is valid
      if (in_array('CiviEvent', $config->enableComponents)) {
      if (
      $arg1 == 'event' &&
      in_array($arg2, array('register', 'info', 'participant', 'ical', 'confirm','add_to_cart'))
      )

      { return TRUE; }

        Attachments

          Activity

            People

            • Assignee:
              pratik.joshi Pratik Joshi
              Reporter:
              zorgalina Zorga Lina
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 48 minutes
                48m
                Remaining:
                Remaining Estimate - 48 minutes
                48m
                Logged:
                Time Spent - Not Specified
                Not Specified