mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Security Solution] Adds check for license level for rule editing callout message (#213995)
## Summary Resolves https://github.com/elastic/kibana/issues/213983 Adds gating logic to only display the rule upgrade related warning callout on the rule editing page if the user has the appropriate license level, otherwise the message is irrelevant as the user wouldn't be able to edit a prebuilt rule in the way the message refers to ### Testing **Steps to reproduce:** 1. Use a Platinum license or any tier that does not allow prebuilt rule updates. 2. Navigate to the Rule Management page and select a prebuilt rule with an available update. 3. Open Rule Details page -> Edit rule settings 4. Observe the callout message is not displayed at the top of the page NOTE: When using the enterprise license, the callout should still be displayed
This commit is contained in:
parent
065790e20a
commit
0485578022
1 changed files with 1 additions and 1 deletions
|
@ -560,7 +560,7 @@ const EditRulePageComponent: FC<{ rule: RuleResponse }> = ({ rule }) => {
|
|||
setIsRulePreviewVisible={setIsRulePreviewVisible}
|
||||
togglePanel={togglePanel}
|
||||
/>
|
||||
{upgradeCallout}
|
||||
{isRulesCustomizationEnabled && upgradeCallout}
|
||||
{invalidSteps.length > 0 && (
|
||||
<EuiCallOut title={i18n.SORRY_ERRORS} color="danger" iconType="warning">
|
||||
<FormattedMessage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue