Project

General

Profile

« Previous | Next » 

Revision 130bd395

Added by Katja Luther over 3 years ago

ref #9173: code cleaning

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/TreeNodeDropAdapterE4.java
169 169
			    for (TaxonNode node: nodes){
170 170
			        hasPermission = hasPermission && CdmStore.currentAuthentiationHasPermission(node, UPDATE) && CdmStore.currentAuthentiationHasPermission(node.getTaxon(), UPDATE);
171 171
			    }
172
//				boolean hasTaxonPermission =
173
//	        			CdmStore.currentAuthentiationHasPermission(node.getTaxon(), UPDATE);
172

  
174 173
                if (
175 174
			        !isNotSameTaxonNode
176 175
			        || !isNotSameParent
......
185 184
			}
186 185
			logger.debug("OK_STATUS"); //$NON-NLS-1$
187 186
			return true;
188
//		}
189
//		logger.debug("CANCEL_STATUS"); //$NON-NLS-1$
190
//		return false;
187

  
191 188
	}
192 189

  
193 190

  
......
227 224

  
228 225

  
229 226
		}
230
		//close possible open name editors for the moved taxon nodes
231

  
232
//		taxonNodes.forEach(nodeDto->EditorUtil.closeObsoleteEditor(nodeDto, partService));
233

  
234 227
		moveNodes(uuids, targetITaxonTreeNode.getUuid(), movingTypeInt);
235 228
        return true;
236 229
	}

Also available in: Unified diff