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>
Этот коммит содержится в:
@@ -3203,7 +3203,7 @@ const AdminDefinition: AdminDefinitionType = {
|
||||
url: 'site_config/wrangler',
|
||||
title: t('admin.sidebar.move_thread'),
|
||||
title_default: 'Move Thread (Beta)',
|
||||
isHidden: it.any(it.not(it.userHasReadPermissionOnResource(RESOURCE_KEYS.SITE.POSTS)), it.configIsFalse('FeatureFlags', 'MoveThreadsEnabled')),
|
||||
isHidden: it.any(it.not(it.userHasReadPermissionOnResource(RESOURCE_KEYS.SITE.POSTS)), it.configIsFalse('FeatureFlags', 'MoveThreadsEnabled'), it.not(it.licensed)),
|
||||
schema: {
|
||||
id: 'WranglerSettings',
|
||||
name: t('admin.site.move_thread'),
|
||||
|
||||
@@ -277,7 +277,7 @@ export function cloudReverseTrial(state: GlobalState): boolean {
|
||||
}
|
||||
|
||||
export function moveThreadsEnabled(state: GlobalState): boolean {
|
||||
return getFeatureFlagValue(state, 'MoveThreadsEnabled') === 'true';
|
||||
return getFeatureFlagValue(state, 'MoveThreadsEnabled') === 'true' && getLicense(state).IsLicensed === 'true';
|
||||
}
|
||||
|
||||
export function streamlinedMarketplaceEnabled(state: GlobalState): boolean {
|
||||
|
||||
Ссылка в новой задаче
Block a user