MM-36084 - Certificate Auth: Remove SAML dependency in license check (#18113)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
16d8640072
Коммит
d5e61e8093
@@ -1791,7 +1791,7 @@ func login(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
ldapOnly := props["ldap_only"] == "true"
|
||||
|
||||
if *c.App.Config().ExperimentalSettings.ClientSideCertEnable {
|
||||
if license := c.App.Srv().License(); license == nil || !*license.Features.SAML {
|
||||
if license := c.App.Srv().License(); license == nil || !*license.Features.FutureFeatures {
|
||||
c.Err = model.NewAppError("ClientSideCertNotAllowed", "api.user.login.client_side_cert.license.app_error", nil, "", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user