mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
[MNT-23424] Clean Rhino scope only for custom scripts (#1696)
This commit is contained in:
@@ -605,8 +605,11 @@ public class RhinoScriptProcessor extends BaseProcessor implements ScriptProcess
|
|||||||
throw new AlfrescoRuntimeException(err.getMessage(), err);
|
throw new AlfrescoRuntimeException(err.getMessage(), err);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
{
|
||||||
|
if (!secure)
|
||||||
{
|
{
|
||||||
unsetScope(model, scope);
|
unsetScope(model, scope);
|
||||||
|
}
|
||||||
Context.exit();
|
Context.exit();
|
||||||
|
|
||||||
if (callLogger.isDebugEnabled())
|
if (callLogger.isDebugEnabled())
|
||||||
|
Reference in New Issue
Block a user