mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue