We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86ffb5 commit a7df135Copy full SHA for a7df135
cookbook/security/voters.rst
@@ -88,7 +88,7 @@ and compare the IP address against a set of blacklisted IP addresses:
88
function vote(TokenInterface $token, $object, array $attributes)
89
{
90
$request = $this->container->get('request');
91
- if (in_array($this->request->getClientIp(), $this->blacklistedIp)) {
+ if (in_array($request->getClientIp(), $this->blacklistedIp)) {
92
return VoterInterface::ACCESS_DENIED;
93
}
94
0 commit comments