mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-60830-master' of git://github.com/sarjona/moodle
This commit is contained in:
commit
d735cb5230
@ -453,7 +453,11 @@ class core_enrol_external extends external_api {
|
||||
$params['perpage']);
|
||||
|
||||
$results = array();
|
||||
$requiredfields = ['id', 'fullname', 'profileimageurl', 'profileimageurlsmall'];
|
||||
// Add also extra user fields.
|
||||
$requiredfields = array_merge(
|
||||
['id', 'fullname', 'profileimageurl', 'profileimageurlsmall'],
|
||||
get_extra_user_fields($context)
|
||||
);
|
||||
foreach ($users['users'] as $id => $user) {
|
||||
// Note: We pass the course here to validate that the current user can at least view user details in this course.
|
||||
// The user we are looking at is not in this course yet though - but we only fetch the minimal set of
|
||||
|
Loading…
x
Reference in New Issue
Block a user