Changeset 31544


Ignore:
Timestamp:
2017-03-28T18:17:21+13:00 (7 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.

File:
1 edited

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");
Note: See TracChangeset for help on using the changeset viewer.