[fix] sets treats the license as enabled by default

We need to assume the license is enabled until we're told otherwise by the license plugin. It's required as we should allow the execution of APIs (like cluster health) on a node that just started and didn't receive the cluster state yet.

Original commit: elastic/x-pack-elasticsearch@ce5fa68bfa
This commit is contained in:
uboness 2015-01-27 00:27:00 +01:00
parent 9121003c47
commit ca49afddfb
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class ShieldActionFilter extends AbstractComponent implements ActionFilte
private final AuditTrail auditTrail;
private final ShieldActionMapper actionMapper;
private volatile boolean licenseEnabled;
private volatile boolean licenseEnabled = true;
@Inject
public ShieldActionFilter(Settings settings, AuthenticationService authcService, AuthorizationService authzService, SignatureService signatureService,