From 18afd0bb3ce473b58bbe3545a42e8166ae64ac19 Mon Sep 17 00:00:00 2001 From: Paulo Silva Date: Thu, 23 Jan 2025 05:44:51 -0300 Subject: [PATCH] [Asset Inventory] Fix privileges required error (#207970) ## Summary This PR fixes the Privileges Required error when accessing the Asset Inventory page introduced by #201780, due to changes on the `siem` capability being migrated to `siemV2`. image In order to fix it, the capability was changed to `siemV2. --- .../security_solution/public/asset_inventory/links.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/links.ts b/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/links.ts index c53b74ae6f693..46a8a0863fcbc 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/links.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/links.ts @@ -8,11 +8,15 @@ import { i18n } from '@kbn/i18n'; import { INVENTORY } from '../app/translations'; -import { ASSET_INVENTORY_PATH, SecurityPageName, SERVER_APP_ID } from '../../common/constants'; +import { + ASSET_INVENTORY_PATH, + SecurityPageName, + SECURITY_FEATURE_ID, +} from '../../common/constants'; import type { LinkItem } from '../common/links/types'; export const links: LinkItem = { - capabilities: [`${SERVER_APP_ID}.show`], + capabilities: [`${SECURITY_FEATURE_ID}.show`], globalNavPosition: 10, globalSearchKeywords: [ i18n.translate('xpack.securitySolution.appLinks.inventory', {