mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[SIEM Migrations] Update siem migrations permissions to check v3 instead of v2 (#225134)
## Summary Security Solution was recently updated with a new set of v3 permissions, the SIEM migrations code was still looking at v2, which no longer exist at run time, and so the cards were showing a permissions error. PR updates these card configs to use v3. Before:  Updated: 
This commit is contained in:
parent
f8ec66f2fa
commit
8d8bc7821c
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { Capabilities } from '@kbn/core/public';
|
||||
import {
|
||||
SECURITY_FEATURE_ID_V2,
|
||||
SECURITY_FEATURE_ID_V3,
|
||||
SIEM_MIGRATIONS_FEATURE_ID,
|
||||
} from '@kbn/security-solution-features/constants';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
@ -20,7 +20,7 @@ export interface MissingCapability {
|
|||
|
||||
const minimumCapabilities: MissingCapability[] = [
|
||||
{
|
||||
capability: `${SECURITY_FEATURE_ID_V2}.show`,
|
||||
capability: `${SECURITY_FEATURE_ID_V3}.show`,
|
||||
description: i18n.translate(
|
||||
'xpack.securitySolution.siemMigrations.service.capabilities.securityAll',
|
||||
{ defaultMessage: 'Security > Security: Read' }
|
||||
|
@ -37,7 +37,7 @@ const minimumCapabilities: MissingCapability[] = [
|
|||
|
||||
const allCapabilities: MissingCapability[] = [
|
||||
{
|
||||
capability: `${SECURITY_FEATURE_ID_V2}.crud`,
|
||||
capability: `${SECURITY_FEATURE_ID_V3}.crud`,
|
||||
description: i18n.translate(
|
||||
'xpack.securitySolution.siemMigrations.service.capabilities.securityAll',
|
||||
{ defaultMessage: 'Security > Security: All' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue