Skip to content

Commit

Permalink
Correct a comment in FieldLevelSecurityTests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtibshirani committed Jul 16, 2018
1 parent 86d11b9 commit 89e136d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public void testQuery() {
.setQuery(matchQuery("alias", "value1"))
.get();
assertHitCount(response, 1);
// user2 has no access to field1, so a query on its field alias should match with the document:
// user2 has no access to field1, so a query on its field alias should not match with the document:
response = client().filterWithHeader(Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue("user2", USERS_PASSWD)))
.prepareSearch("test")
.setQuery(matchQuery("alias", "value1"))
Expand Down

0 comments on commit 89e136d

Please sign in to comment.