Merge remote-tracking branch 'origin/release/V2.2.0.x' into feature-2.2/merge-2.2.0.1

This commit is contained in:
David Webster
2016-09-30 15:35:04 +01:00
28 changed files with 31 additions and 30 deletions

View File

@@ -1738,4 +1738,4 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
{
auditEvent(nodeRef, action.getName());
}
}
}

View File

@@ -379,4 +379,4 @@ public class FreezeServiceImpl extends ServiceBaseImpl
// create hold
return getHoldService().createHold(filePlan, holdName, reason, null);
}
}
}

View File

@@ -153,4 +153,4 @@ public class AuditLogGet extends BaseAuditRetrievalWebScript
return AccessStatus.ALLOWED.equals(
capabilityService.getCapabilityAccessState(targetNode, ACCESS_AUDIT_CAPABILITY));
}
}
}

View File

@@ -212,4 +212,4 @@ public abstract class BaseTransferWebScript extends StreamACP
return itemsToTransfer;
}
}
}

View File

@@ -342,4 +342,4 @@ public class UserRightsReportGet extends DeclarativeWebScript
this.users.add(userName);
}
}
}
}

View File

@@ -442,4 +442,4 @@ public class RMSearchGet extends DeclarativeWebScript
return properties;
}
}
}
}

View File

@@ -124,9 +124,10 @@ public class RMPermissionServiceImpl extends PermissionServiceImpl
{
return super.hasPermission(nodeRef, RMPermissionModel.READ_RECORDS);
}
else if (AccessStatus.DENIED.equals(acs) == true &&
PermissionService.WRITE.equals(perm) == true &&
nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT) == true)
// Added ADD_CHILDREN check in for MNT-16852.
else if (AccessStatus.DENIED.equals(acs) &&
(PermissionService.WRITE.equals(perm) || PermissionService.ADD_CHILDREN.equals(perm)) &&
nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT))
{
return super.hasPermission(nodeRef, RMPermissionModel.FILE_RECORDS);
}