Project

General

Profile

« Previous | Next » 

Revision 7236

Since we already have determined access via isAuthorized() and isAdminAuthorized(), act as the Metacat administrator during calls to DocumentImpl.delete() in archive(), passing in null username and group.

View differences:

src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java
1465 1465
      if (allowed) {
1466 1466
          try {
1467 1467
              // archive the document
1468
              DocumentImpl.delete(localId, username, groupnames, null, false);
1468
              DocumentImpl.delete(localId, null, null, null, false);
1469 1469
              EventLog.getInstance().log(request.getRemoteAddr(), request.getHeader("User-Agent"), username, localId, Event.DELETE.xmlValue());
1470 1470

  
1471 1471
              // archive it

Also available in: Unified diff