From 451168397cdd0fa609bd1d68b7a8bbab22e66692 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 5 Feb 2021 13:10:36 +0100 Subject: [PATCH] Mention the "subject" expression language variable --- security/expressions.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/expressions.rst b/security/expressions.rst index 91454691d5f..2ed16878ff2 100644 --- a/security/expressions.rst +++ b/security/expressions.rst @@ -48,6 +48,8 @@ Inside the expression, you have access to a number of variables: does not include the ``IS_AUTHENTICATED_*`` attributes (see the functions below). ``object`` The object (if any) that's passed as the second argument to ``isGranted()``. +``subject`` + It stores the same value as ``object``, so they are equivalent. ``token`` The token object. ``trust_resolver``