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

Do not call require_login() from external_api::validate_context()

XMLWordPrintable

    • MOODLE_27_STABLE

      There should be another way of validating the access to course/module rather than calling require_login()

      require_login() calls methods from lib/pagelib.php that may show debugging messages or even throw exceptions if they are called several times.

      We also need to remove the hacks introduced in the linked issues.

            Unassigned Unassigned
            marina Marina Glancy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.