From f43096a78f1eba13e0f5e390a14c64fcf140da23 Mon Sep 17 00:00:00 2001 From: Tomasz Ciecierski Date: Wed, 31 May 2023 12:43:46 +0200 Subject: [PATCH] [Defend workflows] Change license requirement for results (#158378) --- .../components/response_actions/endpoint_action_results.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/security_solution/public/common/components/response_actions/endpoint_action_results.tsx b/x-pack/plugins/security_solution/public/common/components/response_actions/endpoint_action_results.tsx index 5e76488ddd1be..e37cfaea412f3 100644 --- a/x-pack/plugins/security_solution/public/common/components/response_actions/endpoint_action_results.tsx +++ b/x-pack/plugins/security_solution/public/common/components/response_actions/endpoint_action_results.tsx @@ -24,13 +24,13 @@ export const EndpointResponseActionResults = ({ action }: EndpointResponseAction const { rule, agent } = action; const { action_id: actionId, expiration } = action.EndpointActions; const { - endpointPrivileges: { canReadActionsLogManagement }, + endpointPrivileges: { canAccessEndpointActionsLogManagement }, } = useUserPrivileges(); const [isLive, setIsLive] = useState(true); const { data: expandedAction } = useGetAutomatedActionResponseList( { actionId, expiration, agent }, - { enabled: canReadActionsLogManagement, action, isLive } + { enabled: canAccessEndpointActionsLogManagement, action, isLive } ); useEffect(() => { @@ -58,7 +58,7 @@ export const EndpointResponseActionResults = ({ action }: EndpointResponseAction event={eventText} data-test-subj={'endpoint-results-comment'} > - {canReadActionsLogManagement ? ( + {canAccessEndpointActionsLogManagement ? ( expandedAction ? (