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

search form in course participant list not available to teacher

    Details

    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Login as Admin;

      Got to a course with > 20 participants

      • Select Participants menu item
      • Check the search box appears at the bottom
      • Click "Show all xx" and confirm the box disappears.

      Switch role to Editing Teacher

      • Select Participants menu item
      • Ensure you have 20 per page as the setting
      • Check the search box appears at the bottom
      • Click "Show all xx"
      • Confirm the search box disappears.

      Reset your role

      • Select "Site Pages" > "Particpants"
      • Confirm the search box appears
      • Select "Show all xxx"
      • Confirm the search box disappears.
      • Copy the URL to later use.

      Login as a non-admin user

      • Paste the earlier copied URL. Confirm no permission is given.
      Show
      Login as Admin; Got to a course with > 20 participants Select Participants menu item Check the search box appears at the bottom Click "Show all xx" and confirm the box disappears. Switch role to Editing Teacher Select Participants menu item Ensure you have 20 per page as the setting Check the search box appears at the bottom Click "Show all xx" Confirm the search box disappears. Reset your role Select "Site Pages" > "Particpants" Confirm the search box appears Select "Show all xxx" Confirm the search box disappears. Copy the URL to later use. Login as a non-admin user Paste the earlier copied URL. Confirm no permission is given.
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:
      MDL-21933_master

      Description

      In Moodle courses, default editingteacher role has capability to access the participant list (moodle/course:viewparticipants).

      With this permission, the user search form does not appears at the bottom of the page when there are many participants. Looking at the code, the search form requires 'moodle/site:viewparticipants', which is a site level permission.

      Giving the following:
      1. search form is really useful to teacher when dealing with large classes
      2. the search appears to be context based, so a teacher can search within participants

      would probably be better to change the capability to show the search form with moodle/course:viewparticipants.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                5 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Jul/13