]> granicus.if.org Git - icinga2/commitdiff
try without initialization of frame Locals which are not used for permissions filter... 7155/head
authorElias Ohm <eohm@novomind.com>
Thu, 2 May 2019 07:03:30 +0000 (09:03 +0200)
committerElias Ohm <eohm@novomind.com>
Thu, 2 May 2019 07:03:30 +0000 (09:03 +0200)
lib/remote/filterutility.cpp

index a9740086ce811331f43e5b0e3094e3add8a2794b..40498f306818426de3835f8582185a441d94fbae 100644 (file)
@@ -192,7 +192,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;
@@ -243,7 +243,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")) {