From 3d8d3a2301a5503112f5d384cd0449090764022a Mon Sep 17 00:00:00 2001 From: Tuna Aksoy Date: Fri, 5 Jun 2015 09:31:43 +0000 Subject: [PATCH] RM-2260 (Users with read&file permissions on content can not classify it if they are not the owners) * Fixed failing integration test +review RM-83 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@105567 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../classification/ContentClassificationServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ContentClassificationServiceImpl.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ContentClassificationServiceImpl.java index 788db4397b..1c31e4660b 100644 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ContentClassificationServiceImpl.java +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ContentClassificationServiceImpl.java @@ -127,14 +127,14 @@ public class ContentClassificationServiceImpl extends ServiceBaseImpl implements properties.put(PROP_CLASSIFICATION_REASONS, classificationReasons); // Add aspect - authenticationUtil.runAsSystem(new RunAsWork() + authenticationUtil.runAs(new RunAsWork() { public Void doWork() { nodeService.addAspect(content, ASPECT_CLASSIFIED, properties); return null; } - }); + }, authenticationUtil.getAdminUserName()); } @Override