Project

General

Profile

« Previous | Next » 

Revision 3312

Added by Jing Tao over 17 years ago

Remove the subtree constrain in access query

View differences:

src/edu/ucsb/nceas/metacat/QuerySpecification.java
261 261
        String allowQuery = null;
262 262
        String allowString = constructAllowString();
263 263
        allowQuery = "SELECT docid from xml_access WHERE( " + allowString;
264
        allowQuery = allowQuery + ") AND subtreeid IS NULL";
264
        allowQuery = allowQuery + ")";
265 265
        logMetacat.info("allow query is: " + allowQuery);
266 266
        return allowQuery;
267 267

  
......
311 311
        String denyQuery = null;
312 312
        String denyString = constructDenyString();
313 313
        denyQuery = "SELECT docid from xml_access WHERE( " + denyString;
314
        denyQuery = denyQuery + ") AND subtreeid IS NULL ";
314
        denyQuery = denyQuery + ") ";
315 315
        logMetacat.info("denyquery is: " + denyQuery);
316 316
        return denyQuery;
317 317

  

Also available in: Unified diff