Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
import { useCallback } from 'react';
import { useUser } from '@/providers/user-provider';
// The flows query answers globally for an administrator while every provider
// query answers per user, so the two lists are not about the same person.
export function useIsOwnFlow() {
const { authInfo } = useUser();
const viewerId = authInfo?.user?.id;
return useCallback(
(flow?: null | { userId: number | string }) =>
flow != null && viewerId != null && String(viewerId) === String(flow.userId),
[viewerId],
);
}