docs: fix call to for_read in auth docs (#1291)

This commit is contained in:
Barnabas Jovanovics 2024-07-08 15:51:56 +02:00 committed by GitHub
parent 2da5fe3395
commit 51e003e4f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
@ -51,7 +51,7 @@ The default value of `authorize?` is determined by the `authorization` configura
## Authorizers
Authorizers are in control of what happens during authorization. Generally, you won't need to create your own authorizer, as the builtin policy authorizer `Ash.Policy.Authorizer` works well for any use case. See the [Policies guide](documentation/topics/security/policies.md) for more.
Authorizers are in control of what happens during authorization. Generally, you won't need to create your own authorizer, as the builtin policy authorizer `Ash.Policy.Authorizer` works well for any use case. See the [Policies guide](documentation/topics/security/policies.md) for more.
## Domain Authorization Configuration