Revision 7042
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
454 | 454 |
continue; |
455 | 455 |
} |
456 | 456 |
|
457 |
// skip if we are not allowed to read the document in question |
|
458 |
// https://redmine.dataone.org/issues/2444 |
|
459 |
boolean allowed = false; |
|
460 |
try { |
|
461 |
allowed = isAuthorized(session, identifier, Permission.READ); |
|
462 |
} catch (NotAuthorized ignore) {} |
|
463 |
if (!allowed) { |
|
464 |
logMetacat.debug(Permission.READ + " not allowed on document: " + identifier.getValue()); |
|
465 |
continue; |
|
466 |
} |
|
467 |
|
|
457 | 468 |
le.setIdentifier(identifier); |
458 | 469 |
le.setIpAddress(ipAddress); |
459 | 470 |
Date logDate = DateTimeMarshaller.deserializeDateToUTC(dateLogged); |
Also available in: Unified diff
do not include log entries for documents that the caller is not allowed to read. https://redmine.dataone.org/issues/2444