-
New Feature
-
Resolution: Deferred
-
Minor
-
None
-
3.11.5
-
MOODLE_311_STABLE
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.