Skip to content

Commit f5ab1e1

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Mention the "subject" expression language variable
2 parents 10a53b8 + 6331344 commit f5ab1e1

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
@@ -44,6 +44,8 @@ Inside the expression, you have access to a number of variables:
4444
does not include the ``IS_AUTHENTICATED_*`` attributes (see the functions below).
4545
``object``
4646
The object (if any) that's passed as the second argument to ``isGranted()``.
47+
``subject``
48+
It stores the same value as ``object``, so they are equivalent.
4749
``token``
4850
The token object.
4951
``trust_resolver``

0 commit comments

Comments
 (0)