Changeset 31544

Show
Ignore:
Timestamp:
28.03.2017 18:17:21 (2 years ago)
Author:
ak19
Message:

Dr Bainbridge found oversight in recently committed code: needed to remember to handle the case when the filterFields is null, as happens when a user has edit permissions on a collection and can thus set any and all meta.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2Construct.java

    r31541 r31544  
    10251025    protected boolean isAllowedToSetMeta(String metaname, Pattern allowedMetaFieldsPattern)  
    10261026    { 
     1027    if(allowedMetaFieldsPattern == null) { // null when user has edit permissions, so they can set any meta 
     1028        logger.info("### User has permissions ot set any meta."); 
     1029        return true; 
     1030    } 
    10271031    if(metaname == null) { 
    10281032        logger.info("### Can't check null metaname against pattern");