Revision 5855906f
Added by Katja Luther over 12 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/permission/CdmPermissionEvaluator.java | ||
---|---|---|
111 | 111 |
if (targetUuid.equals(node.getUuid())) |
112 | 112 |
return node; |
113 | 113 |
else if (node.getParent()!= null){ |
114 |
findTargetUuidInTree(targetUuid, node.getParent()); |
|
114 |
return findTargetUuidInTree(targetUuid, node.getParent());
|
|
115 | 115 |
} |
116 | 116 |
return null; |
117 | 117 |
} |
... | ... | |
139 | 139 |
} |
140 | 140 |
} |
141 | 141 |
} |
142 |
|
|
143 |
if (authorityPermission.className.equals(CdmPermissionClass.TAXONNODE) && targetDomainObject.getClass().getSimpleName().equals(CdmPermissionClass.TAXONNODE)){
|
|
142 |
System.err.println(targetDomainObject.getClass().getSimpleName().toUpperCase()); |
|
143 |
if (authorityPermission.className.equals(CdmPermissionClass.TAXONNODE) && targetDomainObject.getClass().getSimpleName().toUpperCase().equals(CdmPermissionClass.TAXONNODE.toString())){
|
|
144 | 144 |
//TODO: walk through the tree and look for the uuid |
145 | 145 |
TaxonNode node = (TaxonNode)targetDomainObject; |
146 | 146 |
TaxonNode targetNode = findTargetUuidInTree(authorityPermission.targetUuid, node); |
Also available in: Unified diff