Can i create policies for functions? How can prote...
# help
m
Can i create policies for functions? How can protect it if not?
g
There is no RLS policy directly on functions. But they will honor RLS of tables, unless you override with "security definer" Remember RLS policy is just an extra query, so you can implement whatever extra policy checking you want in the function itself, including using auth.uid() etc.
m
oh great! thanks @User