Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64639

Popup error when showing calendar block on enrolment page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.5.4, 3.6.2, 3.7
    • Fix Version/s: None
    • Component/s: Calendar
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE

      Description

      Steps to reproduce:

      • Visit the site home page as an admin
      • Add a 'Calendar' block to the front page
      • Set the block page contexts to 'Display throughout the entire site'
      • Create a course
      • As a non-admin user, try to access the new course
      • You should be redirected to the enrolment page for that course, with the calendar displayed.

      Expected outcome:

      • No course calendar events displayed, no error messages

      Actual outcome:

      • No course calendar events displayed, popup error: requireloginerror - Course or activity not accessible.

      Clearly the login check is correct, because the user is not allowed to view calendar events for a course that they are not enrolled in. However, the popup error should not be displayed as this is confusing to the end user.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                davosmith Davo Smith
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: