File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -876,7 +876,6 @@ static AuthorizedIndices resolveAuthorizedIndicesFromRole(
876876 // TODO: can this be done smarter? I think there are usually more indices/aliases in the cluster then indices defined a roles?
877877 if (includeDataStreams ) {
878878 for (IndexAbstraction indexAbstraction : lookup .values ()) {
879- // TODO this can be cleaned up and optimized to avoid two full predicate checks
880879 final boolean dataAccess = predicate .test (indexAbstraction , IndexComponentSelector .DATA .getKey ());
881880 // TODO should we still add data stream if it only has failure access?
882881 final boolean failureAccess = indexAbstraction .getType () == IndexAbstraction .Type .DATA_STREAM
@@ -891,7 +890,6 @@ static AuthorizedIndices resolveAuthorizedIndicesFromRole(
891890 }
892891 if (failureAccess ) {
893892 for (Index index : ((DataStream ) indexAbstraction ).getFailureIndices ()) {
894- // failure indices are still accessed as "data"
895893 indicesAndAliases .add (index .getName ());
896894 }
897895 }
You can’t perform that action at this time.
0 commit comments