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

get_enrolled_users and count_enrolled_users does not filter site suspended users

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 2.7.6, 2.8.4, 2.9
    • Administration, Enrolments
    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE

    Description

      During MDL-48572 integration I've realised that site-wide suspended users are not being filtered, I am not 100% that it is expected that get_enrolled_users and count_enrolled_users are not filtering site suspended users when asking for $onlyactive.

      To reproduce the problem:

      1. Go to a course with manual enrolments (students)
      2. Go to the gradebook, you can see all the students
      3. Go to one of the students profile page and edit it as admin, setting suspended to 1
      4. Return to the gradebook, the user is still there

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dmonllao David Monllaó
              Votes:
              4 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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