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

Completion blocks do not respect new isincompletionreports capability

    Details

    • Testing Instructions:
      Hide

      1. Enable completion site-wide under "Advanced Features"
      2. Create a new course and make sure completion is enabled
      3. Create some completion criteria for the course (make one of which "Self completion" - enable it), and add the Course Completion Status and Self Completion blocks
      4. Enrol two user's in the course - a student and an editing teacher.
      5. Login as the student and ensure the Course Completion Status block shows the criteria and the user's state in them. Ensure the Self Completion block shows a link for the user to complete the course.
      6. Login as the teacher, ensure the blocks do not display the information displayed for students.
      7. Add the "isincompletionreports" capability to the editing teacher role. Ensure the block now displays data for the teacher as if they were a student (as in step 5).

      Show
      1. Enable completion site-wide under "Advanced Features" 2. Create a new course and make sure completion is enabled 3. Create some completion criteria for the course (make one of which "Self completion" - enable it), and add the Course Completion Status and Self Completion blocks 4. Enrol two user's in the course - a student and an editing teacher. 5. Login as the student and ensure the Course Completion Status block shows the criteria and the user's state in them. Ensure the Self Completion block shows a link for the user to complete the course. 6. Login as the teacher, ensure the blocks do not display the information displayed for students. 7. Add the "isincompletionreports" capability to the editing teacher role. Ensure the block now displays data for the teacher as if they were a student (as in step 5).
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:

      Description

      When MDL-32107 was fixed completion changed to track all users enrolled in a course, rather than just user's who had a tracked role in the course (normally just learner).

      This now causes the Course Completion Status and Self Completion blocks to display tracking details when teachers are logged in.

      MDL-34228 introduced a new capability isincompletionreports for enabling/disabling this for roles/users, and the blocks need to be modified to respect this e.g. only dislaying tracking information if the logged in user does has this capability.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/Jan/13