Skip to content

RLS: Add [ClientVisibilityFilter] attribute to C# module bindings #2440

@joshua-spacetime

Description

@joshua-spacetime

Analogous to #[client_visibility_filter] and Filter::Sql in the rust module bindings.

/// A user only has access to their row
#[spacetimedb::client_visibility_filter]
const USER_FILTER: Filter = Filter::Sql("
    SELECT * FROM user WHERE identity = @sender
");

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions