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

Non editing teacher cannot access a lesson activity with no pages or questions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5.1, 5.0
    • Lesson
    • MOODLE_405_STABLE, MOODLE_500_STABLE

      Steps to reproduce:

      1. (This is optional to make the error more obvious) Edit your config.php and add: $CFG->debug_developer_use_pretty_exceptions = true;
      2. Create a course with a lesson activity. Do NOT change any page or question; the error only occurs with an empty lesson.
      3. Enrol a non-editing teacher
      4. Login as the non-editing teacher and go inside the lesson
      5. Expected: the teacher can access the activity
      6. What happens: the page throws an error

      The problem is with the "mod/lesson:edit" capability. When the lesson has no content, the "edit.php" requires this capability, but the non-editing teacher does not have it. However, the capability is not necessary if the lesson has some content.

            Unassigned Unassigned
            tusefomal Ferran Recio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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