mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -127,14 +127,14 @@ public class ContentClassificationServiceImpl extends ServiceBaseImpl implements
|
|||||||
properties.put(PROP_CLASSIFICATION_REASONS, classificationReasons);
|
properties.put(PROP_CLASSIFICATION_REASONS, classificationReasons);
|
||||||
|
|
||||||
// Add aspect
|
// Add aspect
|
||||||
authenticationUtil.runAsSystem(new RunAsWork<Void>()
|
authenticationUtil.runAs(new RunAsWork<Void>()
|
||||||
{
|
{
|
||||||
public Void doWork()
|
public Void doWork()
|
||||||
{
|
{
|
||||||
nodeService.addAspect(content, ASPECT_CLASSIFIED, properties);
|
nodeService.addAspect(content, ASPECT_CLASSIFIED, properties);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
}, authenticationUtil.getAdminUserName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user