[MNT-23424] Clean Rhino scope only for custom scripts (#1696)

This commit is contained in:
tiagosalvado10
2023-01-25 16:14:40 +00:00
committed by GitHub
parent dc059ad575
commit e96f1804c0

View File

@@ -605,8 +605,11 @@ public class RhinoScriptProcessor extends BaseProcessor implements ScriptProcess
throw new AlfrescoRuntimeException(err.getMessage(), err);
}
finally
{
if (!secure)
{
unsetScope(model, scope);
}
Context.exit();
if (callLogger.isDebugEnabled())