Skip to content

Commit 4511683

Browse files
committed
Mention the "subject" expression language variable
1 parent bc6ca52 commit 4511683

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

security/expressions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Inside the expression, you have access to a number of variables:
4848
does not include the ``IS_AUTHENTICATED_*`` attributes (see the functions below).
4949
``object``
5050
The object (if any) that's passed as the second argument to ``isGranted()``.
51+
``subject``
52+
It stores the same value as ``object``, so they are equivalent.
5153
``token``
5254
The token object.
5355
``trust_resolver``

0 commit comments

Comments
 (0)