Skip to content

Commit

Permalink
rename a translation key
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Oct 20, 2022
1 parent b0a39a3 commit 60db907
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const explainLackOfPermission = (
} else if (!canEditRuleWithActions(rule, hasReadActionsPrivileges)) {
return i18nActions.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES;
} else if (!hasUserCRUDPermission(canUserCRUD)) {
return i18nActions.LACK_OF_RULE_EDITING_PRIVILEGES;
return i18nActions.LACK_OF_KIBANA_SECURITY_PRIVILEGES;
} else {
return undefined;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,10 @@ export const LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES = i18n.translate(
}
);

export const LACK_OF_RULE_EDITING_PRIVILEGES = i18n.translate(
'xpack.securitySolution.detectionEngine.rules.allRules.actions.lackOfRuleEditingPrivileges',
export const LACK_OF_KIBANA_SECURITY_PRIVILEGES = i18n.translate(
'xpack.securitySolution.detectionEngine.rules.allRules.actions.lackOfKibanaSecurityPrivileges',
{
defaultMessage: 'You do not have rule editing privileges',
defaultMessage: 'You do not have Kibana Security privileges',
}
);

Expand Down

0 comments on commit 60db907

Please sign in to comment.