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

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7.6, 2.8.4, 2.9
    • Fix Version/s: None
    • Component/s: Administration, Enrolments
    • Labels:
    • Affected Branches:
      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

              Assignee:
              Unassigned
              Reporter:
              dmonllao David Monllaó
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              3 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated: