mirror of
https://github.com/ash-project/ash.git
synced 2024-09-19 21:13:10 +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
|
||||
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue