[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`.

<img width="943" alt="image"
src="https://github.com/user-attachments/assets/91fd6041-73b0-42e7-94b7-f4acadc25329"
/>


In order to fix it, the capability was changed to `siemV2.
This commit is contained in:
Paulo Silva 2025-01-23 05:44:51 -03:00 committed by GitHub
parent ef4a481928
commit 18afd0bb3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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', {