[Defend workflows] Change license requirement for results (#158378)

This commit is contained in:
Tomasz Ciecierski 2023-05-31 12:43:46 +02:00 committed by GitHub
parent 891eb27dd1
commit f43096a78f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ? (
<ActionsLogExpandedTray
action={expandedAction}