Skip to content

Commit 9bbac06

Browse files
committed
Merge pull request #3326 from FlorianLB/voters_wording
[WIP] Change wording of voters
2 parents 2b65b23 + 16981f8 commit 9bbac06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/security/voters.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ The ``vote()`` method must implement the business logic that verifies whether
4040
or not the user is granted access. This method must return one of the following
4141
values:
4242

43-
* ``VoterInterface::ACCESS_GRANTED``: The user is allowed to access the application
43+
* ``VoterInterface::ACCESS_GRANTED``: The user is allowed to access something
4444
* ``VoterInterface::ACCESS_ABSTAIN``: The voter cannot decide if the user is granted or not
45-
* ``VoterInterface::ACCESS_DENIED``: The user is not allowed to access the application
45+
* ``VoterInterface::ACCESS_DENIED``: The user is not allowed to access something
4646

4747
In this example, you'll check if the user's IP address matches against a list of
48-
blacklisted addresses. If the user's IP is blacklisted, you'll return
48+
blacklisted addresses and "something" will be the application. If the user's IP is blacklisted, you'll return
4949
``VoterInterface::ACCESS_DENIED``, otherwise you'll return
5050
``VoterInterface::ACCESS_ABSTAIN`` as this voter's purpose is only to deny
5151
access, not to grant access.

0 commit comments

Comments
 (0)