diff options
author | Christian Flothmann <christian.flothmann@xabbuh.de> | 2015-11-30 11:54:38 +0100 |
---|---|---|
committer | Christian Flothmann <christian.flothmann@xabbuh.de> | 2015-11-30 11:54:38 +0100 |
commit | ec823fe7b451623020e4ac752f190654ae58c8a0 (patch) | |
tree | 6038acf3ef6ed6eca85353367fed99f2974de5e0 | |
parent | 713b72a42fc3a5d8bdc75dccda9959c7bb331486 (diff) | |
download | symfony-security-ec823fe7b451623020e4ac752f190654ae58c8a0.zip symfony-security-ec823fe7b451623020e4ac752f190654ae58c8a0.tar.gz symfony-security-ec823fe7b451623020e4ac752f190654ae58c8a0.tar.bz2 |
add subject variable to expression contextv2.8.0
-rw-r--r-- | Core/Authorization/Voter/ExpressionVoter.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Core/Authorization/Voter/ExpressionVoter.php b/Core/Authorization/Voter/ExpressionVoter.php index 98b8f50..96a7ece 100644 --- a/Core/Authorization/Voter/ExpressionVoter.php +++ b/Core/Authorization/Voter/ExpressionVoter.php @@ -102,6 +102,7 @@ class ExpressionVoter implements VoterInterface 'token' => $token, 'user' => $token->getUser(), 'object' => $object, + 'subject' => $object, 'roles' => array_map(function ($role) { return $role->getRole(); }, $roles), 'trust_resolver' => $this->trustResolver, ); |