Lock wrangler behind enterprise (#25703)
* Lock wrangler behind enterprise * Run tests with SetupEnterprise so Thread Moving is unlocked. Tweak NewTestLicense to include a SkuShortName for 'enterprise' * Don't set SkuShortName in NewTestLicense just in case. Fix up some old debug code in tests * Remove checks on enterprise/e20 and just enforce that the workspace has any license * Update admin_definition.tsx accordingly --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -1136,7 +1136,7 @@ func moveThread(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if !c.App.Config().FeatureFlags.MoveThreadsEnabled {
|
||||
if !c.App.Config().FeatureFlags.MoveThreadsEnabled || c.App.License() == nil {
|
||||
c.Err = model.NewAppError("moveThread", "api.post.move_thread.disabled.app_error", nil, "", http.StatusNotImplemented)
|
||||
return
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user