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