RM-5839 Fixed permission denied error and added integration test for the fix.

This commit is contained in:
Roxana Lucanu-Ghetu
2017-11-13 10:57:12 +02:00
parent 78b72e90b5
commit d0b96f58ab

View File

@@ -283,7 +283,7 @@ public class RecordAspect extends AbstractDisposableItem
isFilePlanComponent(oldChildAssocRef.getParentRef()))
{
final NodeRef record = newChildAssocRef.getChildRef();
authenticationUtil.runAs(new RunAsWork<Object>()
authenticationUtil.runAsSystem(new RunAsWork<Object>()
{
public Object doWork()
{
@@ -299,7 +299,7 @@ public class RecordAspect extends AbstractDisposableItem
return null;
}
}, authenticationUtil.getAdminUserName());
});
}
}