Skip to content

Commit

Permalink
tweaks thanks to Javier
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Nov 27, 2015
1 parent a4c7d6e commit 5d0e6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbook/security/voters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ which makes creating a voter even easier.
}
.. versionadded::
The ``Voter`` helper class was added in Symfony 2.8. In early versions, an
The ``Voter`` helper class was added in Symfony 2.8. In earlier versions, an
``AbstractVoter`` class with similar behavior was available.

.. _how-to-use-the-voter-in-a-controller:
Expand Down Expand Up @@ -146,7 +146,7 @@ would look like this::
$user = $token->getUser();

if (!$user instanceof User) {
// the user must not be logged in, so we deny access
// the user must be logged in; if not, deny access
return false;
}

Expand Down

0 comments on commit 5d0e6b2

Please sign in to comment.