File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed
content/classnotes/package/supabase-api Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ export const CONTENT_SLUGS = [
47
47
'w3c/dom-api' ,
48
48
// 'ecma/date',
49
49
'w3c/local-storage' ,
50
- // 'ecma/promise',
50
+ 'ecma/promise' ,
51
51
'api/rest' ,
52
52
// 'package/json-server',
53
- // 'package/supabase-api',
53
+ 'package/supabase-api' ,
54
54
'w3c/fetch-api' ,
55
55
'package/axios' ,
56
56
'package/supabase-client' ,
Original file line number Diff line number Diff line change @@ -50,16 +50,13 @@ values
50
50
[ Row Level Security] ( https://supabase.com/docs/guides/auth/row-level-security ) (Authentication > Configuration > Policies):
51
51
52
52
``` text
53
- -- Turn on security
54
- alter table "investments"
55
- enable row level security;
56
-
57
- -- Allow anonymous access
58
- CREATE POLICY "Allow anonymous access"
59
- ON investments
60
- FOR SELECT
61
- TO anon
62
- USING (true);
53
+ CREATE POLICY "Allow public access"
54
+ ON "public"."investments"
55
+ as PERMISSIVE
56
+ FOR ALL
57
+ TO public
58
+ USING (true)
59
+ WITH CHECK (true);
63
60
```
64
61
65
62
### Rotas
You can’t perform that action at this time.
0 commit comments