Revision 7218
Added by Chris Jones over 12 years ago
src/edu/ucsb/nceas/metacat/dataone/CNodeService.java | ||
---|---|---|
282 | 282 |
// TODO: is this necessary? |
283 | 283 |
List<Node> nodeList = D1Client.getCN().listNodes().getNodeList(); |
284 | 284 |
boolean isAllowed = ServiceMethodRestrictionUtil.isMethodAllowed(session.getSubject(), nodeList, "CNReplication", "deleteReplicationMetadata"); |
285 |
if (isAllowed) { |
|
285 |
if (!isAllowed) {
|
|
286 | 286 |
throw new NotAuthorized("4881", "Caller is not authorized to deleteReplicationMetadata"); |
287 | 287 |
} |
288 | 288 |
|
Also available in: Unified diff
Throw an exception when NOT allowed, not when allowed =).