MDL-76284 webservice: early exit if no users for missing capabilities.

This commit is contained in:
Paul Holden 2022-11-15 20:11:31 +00:00
parent 0ea3d45e04
commit fac0c27efb

View File

@ -684,7 +684,8 @@ class webservice {
}
}
if (empty($servicecaps)) {
// Bail out early if there's nothing to process.
if (empty($users) || empty($servicecaps)) {
return [];
}