Project

General

Profile

« Previous | Next » 

Revision 1443

Added by Jing Tao over 21 years ago

Add access query for control the return fields.

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
331 331
        handleReadAction(params, response, username,password, groupnames);
332 332
      } else if (action.equals("insert") || action.equals("update")) {
333 333
        PrintWriter out = response.getWriter();
334
        if ( (username != null) &&  !username.equals("public") ) {
334
        //if ( (username != null) &&  !username.equals("public") ) {
335 335
          handleInsertOrUpdateAction(out,params,username,groupnames);
336
        } else {
337
          out.println("Permission denied for user"+username +" " + action);
338
        }
336
        //} else {
337
          //out.println("Permission denied for user"+username +" " + action);
338
        //}
339 339
        out.close();
340 340
      } else if (action.equals("delete")) {
341 341
        PrintWriter out = response.getWriter();

Also available in: Unified diff