mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
docs: fix call to for_read in auth docs (#1291)
This commit is contained in:
parent
2da5fe3395
commit
51e003e4f2
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ MyDomain.create_post!(Post, authorize?: true)
|
|||
> # DO THIS
|
||||
>
|
||||
> Post
|
||||
> |> Ash.Query.for_read(:read, actor: current_user)
|
||||
> |> Ash.Query.for_read(:read, %{}, actor: current_user)
|
||||
> |> Ash.read!()
|
||||
>
|
||||
> # DON'T DO THIS
|
||||
|
|
Loading…
Reference in a new issue