diff --git a/src/main/java/org/elasticsearch/shield/authz/InternalAuthorizationService.java b/src/main/java/org/elasticsearch/shield/authz/InternalAuthorizationService.java index df5e0a1676b..404a6c0dbf0 100644 --- a/src/main/java/org/elasticsearch/shield/authz/InternalAuthorizationService.java +++ b/src/main/java/org/elasticsearch/shield/authz/InternalAuthorizationService.java @@ -5,7 +5,6 @@ */ package org.elasticsearch.shield.authz; -import org.elasticsearch.Version; import org.elasticsearch.action.CompositeIndicesRequest; import org.elasticsearch.action.IndicesRequest; import org.elasticsearch.cluster.ClusterService; @@ -38,12 +37,8 @@ public class InternalAuthorizationService extends AbstractComponent implements A private final AuditTrail auditTrail; private final IndicesResolver[] indicesResolvers; - static { - //see https://github.com/elasticsearch/elasticsearch/pull/8415 - assert Version.CURRENT.onOrBefore(Version.V_1_4_0) : "replace the Provider with ClusterService"; - } - @Inject + //TODO replace Provider with ClusterService once 1.4.1 is out, see https://github.com/elasticsearch/elasticsearch/pull/8415 public InternalAuthorizationService(Settings settings, RolesStore rolesStore, Provider clusterServiceProvider, AuditTrail auditTrail) { super(settings); this.rolesStore = rolesStore;