diff --git a/lib/remote/eventqueue.cpp b/lib/remote/eventqueue.cpp index 017d3dc57..1c273db51 100644 --- a/lib/remote/eventqueue.cpp +++ b/lib/remote/eventqueue.cpp @@ -23,7 +23,8 @@ bool EventQueue::CanProcessEvent(const String& type) const void EventQueue::ProcessEvent(const Dictionary::Ptr& event) { - ScriptFrame frame(true); + Namespace::Ptr frameNS = new Namespace(); + ScriptFrame frame(true, frameNS); frame.Sandboxed = true; try { diff --git a/lib/remote/filterutility.cpp b/lib/remote/filterutility.cpp index c74af5be3..05decee50 100644 --- a/lib/remote/filterutility.cpp +++ b/lib/remote/filterutility.cpp @@ -188,7 +188,8 @@ std::vector FilterUtility::GetFilterTargets(const QueryDescription& qd, c Expression *permissionFilter; CheckPermission(user, qd.Permission, &permissionFilter); - ScriptFrame permissionFrame(true); + Namespace::Ptr permissionFrameNS = new Namespace(); + ScriptFrame permissionFrame(true, permissionFrameNS); for (const String& type : qd.Types) { String attr = type;