mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
71cefb9ea4
commit
bce51c1af5
@ -59,6 +59,12 @@ bool ActionsHandler::HandleRequest(
|
||||
DiagnosticInformation(ex));
|
||||
return true;
|
||||
}
|
||||
|
||||
if (objs.empty()) {
|
||||
HttpUtility::SendJsonError(response, params, 404,
|
||||
"No objects found.");
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
FilterUtility::CheckPermission(user, permission);
|
||||
objs.emplace_back(nullptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user