Project

General

Profile

« Previous | Next » 

Revision 975

Added by Jing Tao over 22 years ago

In hasPermission method, a situation was considered: if no user and group, the permssion will be true. This is for the command line invocation.

View differences:

src/edu/ucsb/nceas/metacat/AccessControlList.java
1145 1145
    docId=MetaCatUtil.getDocIdFromString(docId);
1146 1146
    boolean hasPermission=false;
1147 1147
    String [] userPackage=null;
1148
    
1148
    //for the commnad line invocation
1149
    if ((user==null) && (groups==null || groups.length==0))
1150
    {
1151
      return true;
1152
    }
1149 1153
   
1150 1154
    //create a userpackage including user, public and group member
1151 1155
    userPackage=createUsersPackage(user, groups);

Also available in: Unified diff