Skip to content

Commit 2e4f374

Browse files
committed
Simplify
1 parent cd9fd3b commit 2e4f374

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/permission/IndicesPermission.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,11 +469,8 @@ public boolean checkIndex(Group group) {
469469
return group.checkSelector(selectorToCheck);
470470
}
471471
}
472-
if (indexAbstraction != null && indexAbstraction.getType() == IndexAbstraction.Type.DATA_STREAM) {
473-
return group.checkIndex(name) && group.checkSelector(selector);
474-
}
475472
// TODO assertions around selector here?
476-
return group.checkIndex(name) && group.checkSelector(IndexComponentSelector.DATA);
473+
return group.checkIndex(name) && group.checkSelector(selector);
477474
}
478475

479476
/**

0 commit comments

Comments
 (0)