MDL-51152 Enrolments: remove unused parameter roleid

This commit is contained in:
Christian Abila
2026-01-08 09:26:20 +01:00
parent 8316779bd9
commit 04e3e64c4a
2 changed files with 8 additions and 2 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 -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