if (hasRights && !readOnly) {
// no problem, you are a boss
ProgramDTO programDTO = new ProgramDTO(programDAO.find(id), DTOPath.PROGRAM_DOC);
if (isAdmin || (programDTO.getEcmManager() != null && programDTO.getEcmManager().getId() == user.getId())
|| (programDTO.getProgramManager() != null && programDTO.getProgramManager().getId() == user.getId())) {
programDTO.enableGC4LaunchButton();
}
return programDTO;
} else if (hasRights && readOnly && readOnlySpecific) {
// simple pure reader
ProgramDTO programDTO = new ProgramDTO(programDAO.find(id), DTOPath.PROGRAM_DOC);