mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Defend workflows] Change license requirement for results (#158378)
This commit is contained in:
parent
891eb27dd1
commit
f43096a78f
1 changed files with 3 additions and 3 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue