policies do policy always() do authorize_if action(:create) authorize_if expr(user_id == ^actor(:id)) endend
policies do policy always() do authorize_if action(:create) authorize_if expr(user_id == ^actor(:id)) endend
When I use Api.read on my read action (list) it is not filtering out records from other users. Is there something else I am supposed to configure for it to filter?
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.