MCPcopy Create free account
hub / github.com/Icinga/icinga2 / FilteredAddTarget

Function FilteredAddTarget

lib/remote/filterutility.cpp:235–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235static void FilteredAddTarget(ScriptFrame& permissionFrame, Expression *permissionFilter,
236 ScriptFrame& frame, Expression *ufilter, std::vector<Value>& result, const String& variableName, const Object::Ptr& target)
237{
238 if (FilterUtility::EvaluateFilter(permissionFrame, permissionFilter, target, variableName)) {
239 if (FilterUtility::EvaluateFilter(frame, ufilter, target, variableName)) {
240 result.emplace_back(std::move(target));
241 }
242 }
243}
244
245/**
246 * Checks whether the given API user is granted the given permission

Callers 1

GetFilterTargetsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected