Project

General

Profile

« Previous | Next » 

Revision 6251

Added by Chris Jones over 13 years ago

throw NotAllowed in MNodeService.delete() when isAuthorized() returns false.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
220 220
      }
221 221

  
222 222
    } else {
223
      throw new NotAuthorized("1320", "The provided identity does not have " +
224
      "permission to DELETE objects on the Member Node.");
223 225
    	
224 226
    }
225 227
    
226 228
		return pid;
227 229
	}
228 230

  
231

  
229 232
  /**
230 233
   * Updates an existing object by creating a new object identified by 
231 234
   * newPid on the Member Node which explicitly obsoletes the object 

Also available in: Unified diff