mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-2529 Add classified aspect as system rather than the user "admin".
This change causes ClassifyTest.testClassifyFrozenRecord() to fail. The test is accurately reflecting a bug in the server that this change reveals (or introduces). See RM-2530. +review RM git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110137 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -102,14 +102,14 @@ public class ContentClassificationServiceImpl extends ServiceBaseImpl
|
||||
final Map<QName, Serializable> properties = createPropertiesMap(classificationAspectProperties, content);
|
||||
|
||||
// Add aspect
|
||||
authenticationUtil.runAs(new RunAsWork<Void>()
|
||||
authenticationUtil.runAsSystem(new RunAsWork<Void>()
|
||||
{
|
||||
public Void doWork()
|
||||
{
|
||||
nodeService.addAspect(content, ASPECT_CLASSIFIED, properties);
|
||||
return null;
|
||||
}
|
||||
}, authenticationUtil.getAdminUserName());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user