Project

General

Profile

« Previous | Next » 

Revision 682

Added by bojilova almost 24 years ago

fixed typo

View differences:

src/edu/ucsb/nceas/metacat/AccessControlList.java
500 500
              "UPDATE xml_documents SET public_access = ?" +
501 501
              " WHERE docid LIKE ?");
502 502
      // Bind the values to the query
503
      if ( publicAcc.toUpperCase().equals("YES") ) {
503
      if ( publicAcc == null ) {
504
        pstmt.setString(1, null);
505
      } else if ( publicAcc.toUpperCase().equals("YES") ) {
504 506
        pstmt.setInt(1, 1);
505 507
      } else {
506 508
        pstmt.setInt(1, 0);
......
543 545

  
544 546
      } catch (SQLException e) {
545 547
        throw new 
546
        SQLException("Error in AccessControlList.hasPermission "
547
                      + e.getMessage());
548
        SQLException("AccessControlList.hasPermission(): " +
549
                     "Error checking document's public access. " +
550
                      e.getMessage());
548 551
      }
549 552
    }
550 553
    

Also available in: Unified diff