File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 1212import org .elasticsearch .cluster .AbstractNamedDiffable ;
1313import org .elasticsearch .cluster .ClusterState ;
1414import org .elasticsearch .cluster .NamedDiff ;
15+ import org .elasticsearch .cluster .block .ClusterBlockLevel ;
1516import org .elasticsearch .cluster .metadata .Metadata ;
1617import org .elasticsearch .common .collect .Iterators ;
1718import org .elasticsearch .common .io .stream .StreamInput ;
@@ -57,6 +58,7 @@ public final class RoleMappingMetadata extends AbstractNamedDiffable<Metadata.Cu
5758 private static final RoleMappingMetadata EMPTY = new RoleMappingMetadata (Set .of ());
5859
5960 public static RoleMappingMetadata getFromClusterState (ClusterState clusterState ) {
61+ clusterState .blocks ().globalBlockedRaiseException (ClusterBlockLevel .READ );
6062 return clusterState .metadata ().custom (RoleMappingMetadata .TYPE , RoleMappingMetadata .EMPTY );
6163 }
6264
You can’t perform that action at this time.
0 commit comments