Skip to content

Commit

Permalink
[Asset Inventory] Fix privileges required error (elastic#207970)
Browse files Browse the repository at this point in the history
## Summary

This PR fixes the Privileges Required error when accessing the Asset
Inventory page introduced by elastic#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.
  • Loading branch information
opauloh authored Jan 23, 2025
1 parent ef4a481 commit 18afd0b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit 18afd0b

Please sign in to comment.