import { useParams } from 'common' import { Unlock } from 'lucide-react' import Link from 'next/link' import { Button, Popover, PopoverContent, PopoverTrigger } from 'ui' import { type Lint } from '@/data/lint/lint-query' export const SecurityDefinerViewPopover = ({ lint, onAutofix, }: { lint: Lint | null onAutofix?: () => void }) => { const { ref } = useParams() return (

Secure your view

This view is defined with the Security Definer property, giving it permissions of the view's creator (Postgres), rather than the permissions of the querying user.

Since this view is in the public schema, it is accessible via your project's APIs.

{!!onAutofix && ( )}
) }