commit | 7f62dc1554a1a6fc830cabac9c40c448eea9d5c0 | [log] [tgz] |
---|---|---|
author | margaretha <margaretha@ids-mannheim.de> | Tue Jun 27 10:53:27 2017 +0200 |
committer | margaretha <margaretha@ids-mannheim.de> | Thu Jun 29 16:50:01 2017 +0200 |
tree | b29c01f6ba07065407896fd2fe73e680539624df | |
parent | 78e0266d963bc87f10eeeea03786d48948bb279a [diff] |
Disabled license checking in light (matchinfo) service. Change-Id: I6a11a0073ad173ce6cf0fe77107f78b0c8816816
diff --git a/src/main/java/de/ids_mannheim/korap/resource/rewrite/CollectionRewrite.java b/src/main/java/de/ids_mannheim/korap/resource/rewrite/CollectionRewrite.java index 4a5ff06..54e4e2e 100644 --- a/src/main/java/de/ids_mannheim/korap/resource/rewrite/CollectionRewrite.java +++ b/src/main/java/de/ids_mannheim/korap/resource/rewrite/CollectionRewrite.java
@@ -46,7 +46,8 @@ && node.at("/key").asText().equals("availability")) { String queryAvailability = node.at("/value").asText(); String matchOp = node.at("/match").asText(); - if (!userAvailabilities.contains(queryAvailability)){ + if (userAvailabilities.contains(queryAvailability) && matchOp. + equals(KoralMatchOperator.EQUALS.toString())){ userAvailabilities.remove(queryAvailability); } }