mirror of https://github.com/Icinga/icinga2.git
'Sandboxed' property isn't properly propagated to child frames
refs #12247
This commit is contained in:
parent
aaa4878017
commit
546bdbcf6a
|
@ -28,6 +28,11 @@ boost::thread_specific_ptr<std::stack<ScriptFrame *> > ScriptFrame::m_ScriptFram
|
|||
ScriptFrame::ScriptFrame(void)
|
||||
: Locals(new Dictionary()), Self(ScriptGlobal::GetGlobals()), Sandboxed(false), Depth(0)
|
||||
{
|
||||
std::stack<ScriptFrame *> *frames = m_ScriptFrames.get();
|
||||
|
||||
if (frames && !frames->empty())
|
||||
Sandboxed = frames->top()->Sandboxed;
|
||||
|
||||
PushFrame(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue