Skip to content

Replace license check isAuthAllowed with isSecurityEnabled (#54547)#55082

Merged
rjernst merged 3 commits intoelastic:7.xfrom
rjernst:refactor_license7_7.x
Apr 13, 2020
Merged

Replace license check isAuthAllowed with isSecurityEnabled (#54547)#55082
rjernst merged 3 commits intoelastic:7.xfrom
rjernst:refactor_license7_7.x

Conversation

@rjernst
Copy link
Copy Markdown
Member

@rjernst rjernst commented Apr 10, 2020

The isAuthAllowed() method for license checking is used by code that
wants to ensure security is both enabled and available. The enabled
state is dynamic and provided by isSecurityEnabled(). But since security
is available with all license types, an check on the license level is
not necessary. Thus, this change replaces isAuthAllowed() with calling
isSecurityEnabled().

…4547)

The isAuthAllowed() method for license checking is used by code that
wants to ensure security is both enabled and available. The enabled
state is dynamic and provided by isSecurityEnabled(). But since security
is available with all license types, an check on the license level is
not necessary. Thus, this change replaces isAuthAllowed() with calling
isSecurityEnabled().
@rjernst rjernst merged commit ae14d16 into elastic:7.x Apr 13, 2020
@rjernst rjernst deleted the refactor_license7_7.x branch August 25, 2020 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant