Skip to content

Commit 880c862

Browse files
committed
fix(example): update RLS policies
1 parent a132036 commit 880c862

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/sport-tracker-app/rls-policies.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#### SELECT
77

88
```sql
9-
auth_userid() = user_id OR json_extract(auth_json(), '$.name') = 'coach'
9+
auth_userid() = users.id OR json_extract(auth_json(), '$.name') = 'coach'
1010
```
1111

1212
#### INSERT
@@ -30,7 +30,7 @@ _No policy_
3030
#### SELECT
3131

3232
```sql
33-
auth_userid() = user_id OR json_extract(auth_json(), '$.name') = 'coach'
33+
auth_userid() = activities.user_id OR json_extract(auth_json(), '$.name') = 'coach'
3434
```
3535

3636
#### INSERT
@@ -56,7 +56,7 @@ auth_userid() = OLD.user_id OR json_extract(auth_json(), '$.name') = 'coach'
5656
#### SELECT
5757

5858
```sql
59-
auth_userid() = user_id OR json_extract(auth_json(), '$.name') = 'coach'
59+
auth_userid() = workouts.user_id OR json_extract(auth_json(), '$.name') = 'coach'
6060
```
6161

6262
#### INSERT

0 commit comments

Comments
 (0)