Add missing checks for self hosted expansion config enabled.

Этот коммит содержится в:
Conor Macpherson
2023-03-28 14:46:27 -04:00
родитель 30921f5e52
Коммит dd7e84aca2

Просмотреть файл

@@ -114,7 +114,7 @@ func selfHostedCustomer(c *Context, w http.ResponseWriter, r *http.Request) {
if c.Err != nil {
return
}
if !checkSelfHostedPurchaseEnabled(c) {
if !checkSelfHostedPurchaseEnabled(c) && !checkSelfHostedExpansionEnabled(c) {
c.Err = model.NewAppError(where, "api.cloud.app_error", nil, "", http.StatusNotImplemented)
return
}
@@ -157,7 +157,7 @@ func selfHostedConfirm(c *Context, w http.ResponseWriter, r *http.Request) {
if c.Err != nil {
return
}
if !checkSelfHostedPurchaseEnabled(c) {
if !checkSelfHostedPurchaseEnabled(c) && !checkSelfHostedExpansionEnabled(c) {
c.Err = model.NewAppError(where, "api.cloud.app_error", nil, "", http.StatusNotImplemented)
return
}