Merge branch 'MDL-54820-master' of git://github.com/jleyva/moodle

This commit is contained in:
Dan Poltawski 2016-06-06 14:09:59 +01:00
commit 015b4d22a2

View File

@ -2140,7 +2140,7 @@ class core_course_external extends external_api {
'perpage' => new external_value(PARAM_INT, 'items per page', VALUE_DEFAULT, 0),
'requiredcapabilities' => new external_multiple_structure(
new external_value(PARAM_CAPABILITY, 'Capability string used to filter courses by permission'),
VALUE_OPTIONAL
'Optional list of required capabilities (used to filter the list)', VALUE_DEFAULT, array()
),
'limittoenrolled' => new external_value(PARAM_BOOL, 'limit to enrolled courses', VALUE_DEFAULT, 0),
)