mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
RM-1692 (User with no rm capabilities can't upload a recorded version)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@90140 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -219,12 +219,19 @@ public class RecordableVersionServiceImpl extends Version2ServiceImpl
|
||||
*/
|
||||
private NodeRef getFilePlan()
|
||||
{
|
||||
NodeRef filePlan = filePlanService.getFilePlanBySiteId(FilePlanService.DEFAULT_RM_SITE_ID);
|
||||
if (filePlan == null)
|
||||
return authenticationUtil.runAsSystem(new RunAsWork<NodeRef>()
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Can't create a recorded version, because there is no file plan.");
|
||||
}
|
||||
return filePlan;
|
||||
@Override
|
||||
public NodeRef doWork() throws Exception
|
||||
{
|
||||
NodeRef filePlan = filePlanService.getFilePlanBySiteId(FilePlanService.DEFAULT_RM_SITE_ID);
|
||||
if (filePlan == null)
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Can't create a recorded version, because there is no file plan.");
|
||||
}
|
||||
return filePlan;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user