Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update supabase_js_v1_legacy.yml

Steve Chavez74945be56696
diff --git a/spec/supabase_js_v1_legacy.yml b/spec/supabase_js_v1_legacy.yml
index 18655240e94..1cfc6896d7f 100644
--- a/spec/supabase_js_v1_legacy.yml
+++ b/spec/supabase_js_v1_legacy.yml
@@ -988,6 +988,20 @@ pages:
const { data, error, count } = await supabase
.rpc('hello_world', {}, { count: 'exact' })
```
+
+ - name: Privileges
+ description: |
+ By default functions are executable by every role. If you wish to restrict this, you can do
+ sql: |
+ ```sql
+ ALTER DEFAULT PRIVILEGES REVOKE EXECUTE ON FUNCTIONS FROM PUBLIC;
+ ```
+ Then you can choose to which role you wish to grant execution on
+ sql: |
+ ```sql
+ GRANT EXECUTE ON FUNCTION hello TO authenticated;
+ GRANT EXECUTE ON FUNCTION hello TO service_role;
+ ```
subscribe():
title: 'on().subscribe()'