Merge branch 'MDL-51152-501' of https://github.com/christianabila/moodle into MOODLE_501_STABLE

This commit is contained in:
Huong Nguyen
2026-03-24 08:32:26 +07:00
3 changed files with 9 additions and 3 deletions
@@ -0,0 +1,7 @@
issueNumber: MDL-51152
notes:
enrol_manual:
- message: >-
The unused parameter 'roleid' has been removed from the external
function `unenrol_users()`
type: removed
+1 -1
View File
@@ -39,7 +39,7 @@ $functions = array(
'classname' => 'enrol_manual_external',
'methodname' => 'unenrol_users',
'classpath' => 'enrol/manual/externallib.php',
'description' => 'Manual unenrol users',
'description' => 'Removes the manual enrolment of users in a course',
'capabilities'=> 'enrol/manual:unenrol',
'type' => 'write',
),
+1 -2
View File
@@ -164,7 +164,6 @@ class enrol_manual_external extends external_api {
array(
'userid' => new external_value(PARAM_INT, 'The user that is going to be unenrolled'),
'courseid' => new external_value(PARAM_INT, 'The course to unenrol the user from'),
'roleid' => new external_value(PARAM_INT, 'The user role', VALUE_OPTIONAL),
)
)
)
@@ -174,7 +173,7 @@ class enrol_manual_external extends external_api {
/**
* Unenrolment of users.
*
* @param array $enrolments an array of course user and role ids
* @param array $enrolments an array of course users
* @throws coding_exception
* @throws dml_transaction_exception
* @throws invalid_parameter_exception