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:
@@ -218,6 +218,11 @@ public class RecordableVersionServiceImpl extends Version2ServiceImpl
|
|||||||
* @return {@link NodeRef} default file plan, exception if none
|
* @return {@link NodeRef} default file plan, exception if none
|
||||||
*/
|
*/
|
||||||
private NodeRef getFilePlan()
|
private NodeRef getFilePlan()
|
||||||
|
{
|
||||||
|
return authenticationUtil.runAsSystem(new RunAsWork<NodeRef>()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public NodeRef doWork() throws Exception
|
||||||
{
|
{
|
||||||
NodeRef filePlan = filePlanService.getFilePlanBySiteId(FilePlanService.DEFAULT_RM_SITE_ID);
|
NodeRef filePlan = filePlanService.getFilePlanBySiteId(FilePlanService.DEFAULT_RM_SITE_ID);
|
||||||
if (filePlan == null)
|
if (filePlan == null)
|
||||||
@@ -226,6 +231,8 @@ public class RecordableVersionServiceImpl extends Version2ServiceImpl
|
|||||||
}
|
}
|
||||||
return filePlan;
|
return filePlan;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine whether this is a recorded version or not.
|
* Determine whether this is a recorded version or not.
|
||||||
|
Reference in New Issue
Block a user