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

This commit is contained in:
Paul Holden
2022-11-28 11:53:23 +00:00
parent 0ea3d45e04
commit fac0c27efb
+2 -1
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 [];
}