Skip to content

Commit

Permalink
Correct inverted comparison of resource policy end date and now
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Feb 1, 2024
1 parent 742e26e commit 3c92dfc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private void buildFullTextList(Item parentItem) throws SQLException {
Date now = new Date();
if (rp.getGroup().getName().equalsIgnoreCase("anonymous")
&& (start == null || ((start.before(now) || DateUtils.isSameDay(start, now))
&& (end == null || (now.after(end) || DateUtils.isSameDay(now, end)))))
&& (end == null || (end.after(now) || DateUtils.isSameDay(now, end)))))
) {
isIndexable = true;
}
Expand Down

0 comments on commit 3c92dfc

Please sign in to comment.