Skip to content

Commit 82729ec

Browse files
authored
fix(security): request variable is only available at the resource level (#1470)
1 parent 5c0bd37 commit 82729ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Available variables are:
118118

119119
* `user`: the current logged in object, if any
120120
* `object`: the current resource, or collection of resources for collection operations
121-
* `request`: the current request
121+
* `request` (only at the resource level): the current request
122122

123123
Access control checks in the `security` attribute are always executed before the [denormalization step](serialization.md).
124124
It means than for `PUT` or `PATCH` requests, `object` doesn't contain the value submitted by the user, but values currently stored in [the persistence layer](data-persisters.md).

0 commit comments

Comments
 (0)