Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
added subject to the list of variables passed to the security expression
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 14, 2017
1 parent 53a6399 commit b719b7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions EventListener/SecurityListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ private function getVariables(Request $request)
'token' => $token,
'user' => $token->getUser(),
'object' => $request,
'subject' => $request,
'request' => $request,
'roles' => array_map(function ($role) { return $role->getRole(); }, $roles),
'trust_resolver' => $this->trustResolver,
Expand Down

0 comments on commit b719b7e

Please sign in to comment.