Project

General

Profile

« Previous | Next » 

Revision 2658

Added by sgarg about 19 years ago

if moderator is logged into metacat and no option for enable-editing is specified then enable editing by default

View differences:

src/edu/ucsb/nceas/metacat/DBQuery.java
267 267
        PrintWriter nonout = null;
268 268
        StringBuffer xml = createResultDocument(xmlquery, qspec, nonout, user,
269 269
                                                groups, useXMLIndex);
270
        
271
        
272
        // if moderator is logged into the system and no option for 
273
        // enable-editing is specified then enable editing by default
274
        if(MetaCatUtil.isModerator(user, groups) && params.get("enableediting") == null){
275
        	params.put("enableediting", new String[]{"true"});
276
        }
277
        
270 278
        //transfer the xml to html
271 279
        try
272 280
        {

Also available in: Unified diff