Skip to content

Commit 240ad39

Browse files
committed
Added missing required column identifier to simple query RLS documentation examples.
1 parent 7d00e11 commit 240ad39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rls/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use spacetimedb::{client_visibility_filter, Filter};
3333
/// A client can only see their account
3434
#[client_visibility_filter]
3535
const ACCOUNT_FILTER: Filter = Filter::Sql(
36-
"SELECT * FROM account WHERE identity = :sender"
36+
"SELECT * FROM account WHERE account.identity = :sender"
3737
);
3838
```
3939
:::
@@ -52,7 +52,7 @@ public partial class Module
5252
/// </summary>
5353
[SpacetimeDB.ClientVisibilityFilter]
5454
public static readonly Filter ACCOUNT_FILTER = new Filter.Sql(
55-
"SELECT * FROM account WHERE identity = :sender"
55+
"SELECT * FROM account WHERE account.identity = :sender"
5656
);
5757
}
5858
```

0 commit comments

Comments
 (0)