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

webservice 'core_enrol_get_enrolled_users' returns strict database values

    XMLWordPrintable

Details

    • MOODLE_311_STABLE

    Description

      When we call the API function  'core_enrol_get_enrolled_users' returns all participants, regardless of his status.

      There are two params avalaible:   onlyActive and onlySuspended.

      The problem is when the course has not started or has finished: the function returns users with  "Not current" status.

       

      We need to distinguish between users with "Active" status and "Not current" status,

      or the opposite, to distinguish between users with "Suspend" status and "Not current" status.

       

      Our request is new param, for example, called 'strict'

      In case of strict=1 and onlyActive=1 the function will return only the participants who has '0' status value in 'mdl_users_enrolment' table.

      In case of strict=1 and onlySuspend=1 the function will return only the participants who has '1'  status value in 'mdl_users_enrolment' table.

      Both cases the dates not participate.

      Attachments

        Activity

          People

            Unassigned Unassigned
            juanarr Juana
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Clockify

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