]> granicus.if.org Git - icinga2/commitdiff
try without initialization of frame Locals which are not used for permissions filter...
authorElias Ohm <eohm@novomind.com>
Thu, 2 May 2019 07:03:30 +0000 (09:03 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 16 May 2019 14:17:06 +0000 (16:17 +0200)
(cherry picked from commit c10ff9dd726da0485f99f8c8601a0feb95cfd28f)

lib/remote/filterutility.cpp

index 255bb96c6cf28af4465d85d26026234891997a44..7ef6f65b7e9d05261ad89da2b92c1f4ee1d789da 100644 (file)
@@ -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")) {