Project

General

Profile

« Previous | Next » 

Revision 6510

use "action" parameter instead of "permission"

View differences:

src/edu/ucsb/nceas/metacat/restservice/CNResourceHandler.java
737 737
    private boolean isAuthorized(String id) throws ServiceFailure, InvalidToken, NotFound, NotAuthorized, NotImplemented, InvalidRequest {
738 738
		Identifier pid = new Identifier();
739 739
		pid.setValue(id);
740
		String permission = params.get("permission")[0];
740
		String permission = params.get("action")[0];
741 741
		boolean result = CNodeService.getInstance().isAuthorized(session, pid, Permission.convert(permission));
742 742
		response.setStatus(200);
743 743
		response.setContentType("text/xml");

Also available in: Unified diff