From d0b96f58abe98e7e3307ae48267f8db2bcc05c0b Mon Sep 17 00:00:00 2001 From: Roxana Lucanu-Ghetu Date: Mon, 13 Nov 2017 10:57:12 +0200 Subject: [PATCH] RM-5839 Fixed permission denied error and added integration test for the fix. --- .../org_alfresco_module_rm/model/rma/aspect/RecordAspect.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java index b464dfd9d3..01544a50e8 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java @@ -283,7 +283,7 @@ public class RecordAspect extends AbstractDisposableItem isFilePlanComponent(oldChildAssocRef.getParentRef())) { final NodeRef record = newChildAssocRef.getChildRef(); - authenticationUtil.runAs(new RunAsWork() + authenticationUtil.runAsSystem(new RunAsWork() { public Object doWork() { @@ -299,7 +299,7 @@ public class RecordAspect extends AbstractDisposableItem return null; } - }, authenticationUtil.getAdminUserName()); + }); } }