Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
d735cb52
Commit
d735cb52
authored
Nov 27, 2017
by
Jake Dallimore
Browse files
Merge branch 'MDL-60830-master' of
git://github.com/sarjona/moodle
parents
d470de67
46ea440b
Changes
1
Hide whitespace changes
Inline
Side-by-side
enrol/externallib.php
View file @
d735cb52
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment