mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
try without initialization of frame Locals which are not used for permissions filter and as far as I can see also not for query filters
(cherry picked from commit c10ff9dd726da0485f99f8c8601a0feb95cfd28f)
This commit is contained in:
parent
14cb6ec741
commit
c6f84e24da
@ -208,7 +208,7 @@ std::vector<Value> FilterUtility::GetFilterTargets(const QueryDescription& qd, c
|
||||
CheckPermission(user, qd.Permission, &permissionFilter);
|
||||
|
||||
Namespace::Ptr permissionFrameNS = new Namespace();
|
||||
ScriptFrame permissionFrame(true, permissionFrameNS);
|
||||
ScriptFrame permissionFrame(false, permissionFrameNS);
|
||||
|
||||
for (const String& type : qd.Types) {
|
||||
String attr = type;
|
||||
@ -259,7 +259,7 @@ std::vector<Value> FilterUtility::GetFilterTargets(const QueryDescription& qd, c
|
||||
BOOST_THROW_EXCEPTION(std::invalid_argument("Invalid type specified for this query."));
|
||||
|
||||
Namespace::Ptr frameNS = new Namespace();
|
||||
ScriptFrame frame(true, frameNS);
|
||||
ScriptFrame frame(false, frameNS);
|
||||
frame.Sandboxed = true;
|
||||
|
||||
if (query->Contains("filter")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user