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
This commit is contained in:
Tuna Aksoy
2015-06-05 09:31:43 +00:00
parent 34beffedad
commit 3d8d3a2301

View File

@@ -127,14 +127,14 @@ public class ContentClassificationServiceImpl extends ServiceBaseImpl implements
properties.put(PROP_CLASSIFICATION_REASONS, classificationReasons);
// Add aspect
authenticationUtil.runAsSystem(new RunAsWork<Void>()
authenticationUtil.runAs(new RunAsWork<Void>()
{
public Void doWork()
{
nodeService.addAspect(content, ASPECT_CLASSIFIED, properties);
return null;
}
});
}, authenticationUtil.getAdminUserName());
}
@Override