mirror of
https://github.com/ash-project/ash.git
synced 2024-09-19 13:03:02 +12:00
docs: Fix typo in authorize-access-to-resources howto (#1431)
This commit is contained in:
parent
0dc3a75aaf
commit
f1874a708d
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ defmodule Tweet do
|
||||||
description "If a tweet is hidden, only the author can read it. Otherwise, anyone can."
|
description "If a tweet is hidden, only the author can read it. Otherwise, anyone can."
|
||||||
# first check this. If true, then this policy passes
|
# first check this. If true, then this policy passes
|
||||||
authorize_if relates_to_actor_via(:user)
|
authorize_if relates_to_actor_via(:user)
|
||||||
# the check this. If false, then this policy fails
|
# then check this. If false, then this policy fails
|
||||||
forbid_if expr(hidden? == true)
|
forbid_if expr(hidden? == true)
|
||||||
# otherwise, this policy passes
|
# otherwise, this policy passes
|
||||||
authorize_if always()
|
authorize_if always()
|
||||||
|
|
Loading…
Reference in a new issue