Skip to content

Commit 18afd0b

Browse files
authored
[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.
1 parent ef4a481 commit 18afd0b

File tree

1 file changed

+6
-2
lines changed
  • x-pack/solutions/security/plugins/security_solution/public/asset_inventory

1 file changed

+6
-2
lines changed

x-pack/solutions/security/plugins/security_solution/public/asset_inventory/links.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88
import { i18n } from '@kbn/i18n';
99

1010
import { INVENTORY } from '../app/translations';
11-
import { ASSET_INVENTORY_PATH, SecurityPageName, SERVER_APP_ID } from '../../common/constants';
11+
import {
12+
ASSET_INVENTORY_PATH,
13+
SecurityPageName,
14+
SECURITY_FEATURE_ID,
15+
} from '../../common/constants';
1216
import type { LinkItem } from '../common/links/types';
1317

1418
export const links: LinkItem = {
15-
capabilities: [`${SERVER_APP_ID}.show`],
19+
capabilities: [`${SECURITY_FEATURE_ID}.show`],
1620
globalNavPosition: 10,
1721
globalSearchKeywords: [
1822
i18n.translate('xpack.securitySolution.appLinks.inventory', {

0 commit comments

Comments
 (0)