mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
Remove creating email function from guide
This commit is contained in:
1 parent
be7664e700
commit
b5794eeee0
1 file changed
-4
@@ -138,10 +138,6 @@ There are some more notes here on how to structure your schema to best integrate
|
||||
Once you get the hang of policies you can start to get a little bit fancy. Let's say I work at Blizzard and I only want Blizzard staff members to be able to update people's high scores, I can write something like:
|
||||
|
||||
```sql
|
||||
create or replace function auth.email() returns text as $$
|
||||
select nullif(current_setting('request.jwt.claims', true)::json->>'email', '')::text;
|
||||
$$ language sql;
|
||||
|
||||
create policy "Only Blizzard staff can update leaderboard"
|
||||
on my_scores
|
||||
for update using (
|
||||
|
||||
Reference in new issue
Block a user