Skip to content

Commit

Permalink
Check denylist for lone filetype instead of lone viewname
Browse files Browse the repository at this point in the history
  • Loading branch information
rupert-griffin committed Jul 24, 2024
1 parent b06177c commit 9cf166d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/emissary/output/filter/AbstractFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ protected Set<String> getTypesToCheckForNamedView(final IBaseDataObject d, final

protected boolean denyListContains(final String fileType, final String viewName) {
String fullName = fileType + "." + viewName;
if (this.denylist.contains(viewName) || this.denylist.contains(fullName)) {
if (this.denylist.contains(fileType) || this.denylist.contains(fullName)) {
return true;
}
if (this.denylist.stream().anyMatch(i -> i.replaceAll("^\\*\\.", "").equals(viewName))) {
Expand Down

0 comments on commit 9cf166d

Please sign in to comment.