docs: Fix typo in authorize-access-to-resources howto (#1431)

This commit is contained in:
Zach Liss 2024-09-02 10:58:33 -04:00 committed by GitHub
parent 0dc3a75aaf
commit f1874a708d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,7 +110,7 @@ defmodule Tweet do
description "If a tweet is hidden, only the author can read it. Otherwise, anyone can."
# first check this. If true, then this policy passes
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)
# otherwise, this policy passes
authorize_if always()