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

Add capability to hide site-level suspended users in the front-end of the manual enrollment plugin

    XMLWordPrintable

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 2.4, 3.1, 3.2
    • None
    • Enrolments
    • MOODLE_24_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • MDL-39073_show_suspended_users_capability
    • Hide

      Set up data

      1. Log in as admin user.
      2. Go to Site administration > Users > Upload users
      3. Upload attached file 'MDL-39073-user-import-example.csv' under File
      4. Click 'Upload users'
      5. Click 'Upload users' (on new page)
      6. Three users should be added to site.
      7. Go to Site administration > Courses > Upload courses
      8. Upload attached file 'MDL-39073-course-import-example.csv' under File
      9. Click 'Preview'
      10. Click 'Upload courses' (on new page)
      11. Two courses should be added to site
      12. Go to course with shortname 'mysecondcourse'
      13. Go to Participants.
      14. Click 'Enrol users' button.
      15. Enrol the user with username 'teacher' in a 'Teacher' role. (role shortname: editingteacher)

      Test that all users are shown

      1. Log in as admin user.
      2. Go to course with shortname 'mycourse'
      3. Go to Participants.
      4. Click 'Enrol users' button.
      5. Search for users using search string: 'Testuser'.
      6. You should see two users in the results.

      Test that non-suspended users are shown

      1. Log in as 'teacher' user. (username: teacher, password: Secret1235678!@#)
      2. Go to course with shortname 'mysecondcourse'
      3. Go to Participants.
      4. Click 'Enrol users' button.
      5. Search for users using search string: 'Testuser'.
      6. You should see one user in the results.
      7. You should see the the user 'Student1 Testuser' the results.
      8. You should not see the the user 'Student2 Testuser' the results.
      Show
      Set up data Log in as admin user. Go to Site administration > Users > Upload users Upload attached file ' MDL-39073 -user-import-example.csv' under File Click 'Upload users' Click 'Upload users' (on new page) Three users should be added to site. Go to Site administration > Courses > Upload courses Upload attached file ' MDL-39073 -course-import-example.csv' under File Click 'Preview' Click 'Upload courses' (on new page) Two courses should be added to site Go to course with shortname 'mysecondcourse' Go to Participants. Click 'Enrol users' button. Enrol the user with username 'teacher' in a 'Teacher' role. (role shortname: editingteacher) Test that all users are shown Log in as admin user. Go to course with shortname 'mycourse' Go to Participants. Click 'Enrol users' button. Search for users using search string: 'Testuser'. You  should  see two users in the results. Test that non-suspended users are shown Log in as 'teacher' user. (username: teacher, password: Secret1235678!@#) Go to course with shortname 'mysecondcourse' Go to Participants. Click 'Enrol users' button. Search for users using search string: 'Testuser'. You  should  see one user in the results. You  should see the the user 'Student1 Testuser' the results. You  should not see the the user 'Student2 Testuser' the results.

    Description

      When manually enrolling users, in the popup window where users can be searched and enrolled with a given role, no information is present about the status of the account. That holds true also when using the alternative enrollment interface available when accessing the manual users enroll clicking the "Enroll users" icon available in course's "Enrollment methods" page.

      Possible solutions:

      • show the suspended status close to the name (to be checked if that may be impacted by the "hiddenuserfields" admin setting)
      • allow filtering users in manual enrollment screens (could be something like "exclude suspended accounts")

      Attachments

        Issue Links

          Activity

            People

              andrewmadden Andrew Madden
              andreabix Andrea Bicciolo
              Kevin Pham Kevin Pham
              Huong Nguyen Huong Nguyen
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              10 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 50 minutes
                  2h 50m