Add new terms rule type to privileges (#137293)

This commit is contained in:
Marshall Main 2022-07-27 09:16:28 -07:00 committed by GitHub
parent e5fe63e27c
commit 483f484cb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,7 @@ import {
EQL_RULE_TYPE_ID,
SAVED_QUERY_RULE_TYPE_ID,
THRESHOLD_RULE_TYPE_ID,
NEW_TERMS_RULE_TYPE_ID,
} from '@kbn/securitysolution-rules';
import type { Logger } from '@kbn/core/server';
@ -285,6 +286,7 @@ export class Plugin implements ISecuritySolutionPlugin {
QUERY_RULE_TYPE_ID,
SAVED_QUERY_RULE_TYPE_ID,
THRESHOLD_RULE_TYPE_ID,
NEW_TERMS_RULE_TYPE_ID,
];
plugins.features.registerKibanaFeature(getKibanaPrivilegesFeaturePrivileges(ruleTypes));