mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
docs(pg_net): show effective execute privileges in check query
This commit is contained in:
1 parent
8ff36ddfd2
commit
eefdb6ad65
1 file changed
+5
-1
@@ -462,7 +462,11 @@ To see your `pg_net` version and the privileges on its functions, run:
|
||||
```sql
|
||||
select extversion from pg_extension where extname = 'pg_net';
|
||||
|
||||
select p.proname, p.prosecdef as security_definer, p.proacl
|
||||
select
|
||||
p.proname,
|
||||
p.prosecdef as security_definer,
|
||||
has_function_privilege('anon', p.oid, 'execute') as anon_can_execute,
|
||||
has_function_privilege('authenticated', p.oid, 'execute') as authenticated_can_execute
|
||||
from
|
||||
pg_proc as p
|
||||
join pg_namespace as n on n.oid = p.pronamespace
|
||||
|
||||
Reference in new issue
Block a user