One last cleanup, i18n, etc.
Этот коммит содержится в:
@@ -309,7 +309,7 @@ func requestTrueUpReview(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
license := c.App.Channels().License()
|
license := c.App.Channels().License()
|
||||||
if license == nil {
|
if license == nil {
|
||||||
c.Err = model.NewAppError("requestTrueUpReview", "api.license.true_up_review.license.required", nil, "", http.StatusNotImplemented)
|
c.Err = model.NewAppError("requestTrueUpReview", "api.license.true_up_review.license_required", nil, "", http.StatusNotImplemented)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,10 @@ import (
|
|||||||
func (a *App) getTrueUpProfile() (*model.TrueUpReviewProfile, error) {
|
func (a *App) getTrueUpProfile() (*model.TrueUpReviewProfile, error) {
|
||||||
|
|
||||||
license := a.Channels().License()
|
license := a.Channels().License()
|
||||||
|
if license == nil {
|
||||||
|
return nil, model.NewAppError("requestTrueUpReview", "api.license.true_up_review.license_required", nil, "Could not get the total active users count", http.StatusInternalServerError)
|
||||||
|
}
|
||||||
|
|
||||||
// Customer Info & Usage Analytics
|
// Customer Info & Usage Analytics
|
||||||
activeUserCount, err := a.Srv().Store().Status().GetTotalActiveUsersCount()
|
activeUserCount, err := a.Srv().Store().Status().GetTotalActiveUsersCount()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -2085,10 +2085,6 @@
|
|||||||
"id": "api.license.true_up_review.get_status_error",
|
"id": "api.license.true_up_review.get_status_error",
|
||||||
"translation": "Could not get true up status records"
|
"translation": "Could not get true up status records"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "api.license.true_up_review.license.required",
|
|
||||||
"translation": "A license is required to request a true up review."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "api.license.true_up_review.license_required",
|
"id": "api.license.true_up_review.license_required",
|
||||||
"translation": "True up review requires a license"
|
"translation": "True up review requires a license"
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user