Merge branch 'master' of github.com:mattermost/mattermost-server into MM-51692-delete-reason-feedback-is-sending-notifications-with-translated-text
Этот коммит содержится в:
@@ -442,7 +442,7 @@ func (lr *LicenseRecord) IsValid() *AppError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if lr.Bytes == "" || len(lr.Bytes) > 10000 {
|
if lr.Bytes == "" || len(lr.Bytes) > 10000 {
|
||||||
return NewAppError("LicenseRecord.IsValid", "model.license_record.is_valid.create_at.app_error", nil, "", http.StatusBadRequest)
|
return NewAppError("LicenseRecord.IsValid", "model.license_record.is_valid.bytes.app_error", nil, "", http.StatusBadRequest)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ func TestUploadLicenseFile(t *testing.T) {
|
|||||||
require.Equal(t, http.StatusBadRequest, resp.StatusCode)
|
require.Equal(t, http.StatusBadRequest, resp.StatusCode)
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("try to get gone through trial, with TE build", func(t *testing.T) {
|
t.Run("try to get one through trial, with TE build", func(t *testing.T) {
|
||||||
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ExperimentalSettings.RestrictSystemAdmin = false })
|
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ExperimentalSettings.RestrictSystemAdmin = false })
|
||||||
th.App.Srv().Platform().SetLicenseManager(nil)
|
th.App.Srv().Platform().SetLicenseManager(nil)
|
||||||
|
|
||||||
|
|||||||
@@ -9231,6 +9231,10 @@
|
|||||||
"id": "model.job.is_valid.type.app_error",
|
"id": "model.job.is_valid.type.app_error",
|
||||||
"translation": "Invalid job type."
|
"translation": "Invalid job type."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "model.license_record.is_valid.bytes.app_error",
|
||||||
|
"translation": "Invalid value for bytes when uploading a license."
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "model.license_record.is_valid.create_at.app_error",
|
"id": "model.license_record.is_valid.create_at.app_error",
|
||||||
"translation": "Invalid value for create_at when uploading a license."
|
"translation": "Invalid value for create_at when uploading a license."
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user