Project

General

Profile

« Previous | Next » 

Revision 6874

Don't throw a NotAuthorized exception in isAdminAuthorized() - just return false.

View differences:

src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java
644 644
                      allowed = true; // subject of session == target node subject
645 645
                      break;
646 646
                      
647
                  } else {
648
                      throw new NotAuthorized("4851", permission + 
649
                          " not allowed on " + pid.getValue());
650 647
                  }
651
              }                 
648
              }              
652 649
          }
653 650
      }
654 651

  

Also available in: Unified diff