Project

General

Profile

« Previous | Next » 

Revision 7069

check for session when checking administrative authorization

View differences:

src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java
659 659
      NotImplemented {
660 660

  
661 661
      boolean allowed = false;
662
      
663
      // must have a session in order to check admin 
664
      if (session == null) {
665
    	  return false;
666
      }
667
      
662 668
      // are we allowed to do this? only CNs and target MNs are allowed
663 669
      CNode cn = D1Client.getCN();
664 670
      List<Node> nodes = cn.listNodes().getNodeList();

Also available in: Unified diff