Remove Custom statuses feature flag (#17075)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9cc5089af8
Коммит
633d82f0ac
@@ -117,7 +117,7 @@ func updateUserCustomStatus(c *Context, w http.ResponseWriter, r *http.Request)
|
||||
return
|
||||
}
|
||||
|
||||
if !c.App.Config().FeatureFlags.CustomUserStatuses || !*c.App.Config().TeamSettings.EnableCustomUserStatuses {
|
||||
if !*c.App.Config().TeamSettings.EnableCustomUserStatuses {
|
||||
c.Err = model.NewAppError("updateUserCustomStatus", "api.custom_status.disabled", nil, "", http.StatusNotImplemented)
|
||||
return
|
||||
}
|
||||
@@ -149,7 +149,7 @@ func removeUserCustomStatus(c *Context, w http.ResponseWriter, r *http.Request)
|
||||
return
|
||||
}
|
||||
|
||||
if !c.App.Config().FeatureFlags.CustomUserStatuses || !*c.App.Config().TeamSettings.EnableCustomUserStatuses {
|
||||
if !*c.App.Config().TeamSettings.EnableCustomUserStatuses {
|
||||
c.Err = model.NewAppError("removeUserCustomStatus", "api.custom_status.disabled", nil, "", http.StatusNotImplemented)
|
||||
return
|
||||
}
|
||||
@@ -173,7 +173,7 @@ func removeUserRecentCustomStatus(c *Context, w http.ResponseWriter, r *http.Req
|
||||
return
|
||||
}
|
||||
|
||||
if !c.App.Config().FeatureFlags.CustomUserStatuses || !*c.App.Config().TeamSettings.EnableCustomUserStatuses {
|
||||
if !*c.App.Config().TeamSettings.EnableCustomUserStatuses {
|
||||
c.Err = model.NewAppError("removeUserRecentCustomStatus", "api.custom_status.disabled", nil, "", http.StatusNotImplemented)
|
||||
return
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user