Revision 4ebd1ae8
code cleaning
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonNodeServiceImpl.java | ||
---|---|---|
1151 | 1151 |
for(TaxonNode node:nodes){ |
1152 | 1152 |
if (authentication != null ) { |
1153 | 1153 |
hasPermission = permissionEvaluator.hasPermission(authentication, node, Operation.UPDATE); |
1154 |
}else if (authentication == null){
|
|
1154 |
}else { |
|
1155 | 1155 |
hasPermission = true; |
1156 | 1156 |
} |
1157 | 1157 |
if (node.getTaxon() != null && hasPermission){ |
... | ... | |
1159 | 1159 |
TaxonDistributionDTO dto = new TaxonDistributionDTO(node.getTaxon()); |
1160 | 1160 |
result.add(dto); |
1161 | 1161 |
}catch(Exception e){ |
1162 |
System.err.println(node.getTaxon().getTitleCache());
|
|
1162 |
logger.error(e.getMessage(), e);
|
|
1163 | 1163 |
} |
1164 | 1164 |
|
1165 | 1165 |
} |
Also available in: Unified diff