Skip to content

Commit 50167e0

Browse files
committed
documentation: improve advanced auth example
1 parent 61dc5d5 commit 50167e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/usage/resources/hooks.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ Let's consider an authorization scenario for which we are required to implement
364364
* The author of article `Old Article` is person `Alice`.
365365
* The author of article `New Article` is person `Bob`.
366366

367-
Now let's consider an API user that tries to update `New Article` by setting its author to `Alice`. First to all, we wish to authorize this operation by the verifying permissions related to the resources that are **explicity affected** by it:
367+
Now let's consider an API user that tries to update `New Article` by setting its author to `Alice`. The request would look something like `PATCH /articles/{NewArticleId}` with a body containing a reference to `Alice`.
368+
369+
First to all, we wish to authorize this operation by the verifying permissions related to the resources that are **explicity affected** by it:
368370
1. Is the API user allowed to update `New Article`?
369371
2. Is the API user allowed to update `Alice`?
370372

0 commit comments

Comments
 (0)