Skip to content

Commit ab0d697

Browse files
committed
minor #16237 [Security] Correct spelling & grammar in 4.4 security.rst (gnito-org)
This PR was merged into the 4.4 branch. Discussion ---------- [Security] Correct spelling & grammar in 4.4 security.rst <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 1376058 Correct spelling & grammar in 4.4 security.rst
2 parents b7e4ba4 + 1376058 commit ab0d697

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

security.rst

+9-7
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ and ``/_wdt``.
346346

347347
All *real* URLs are handled by the ``main`` firewall (no ``pattern`` key means
348348
it matches *all* URLs). A firewall can have many modes of authentication,
349-
in other words many ways to ask the question "Who are you?". Often, the
349+
in other words, it enables many ways to ask the question "Who are you?". Often, the
350350
user is unknown (i.e. not logged in) when they first visit your website. The
351351
``anonymous`` mode, if enabled, is used for these requests.
352352

@@ -361,7 +361,7 @@ It means any request can have an anonymous token to access some resource,
361361
while some actions (i.e. some pages or buttons) can still require specific
362362
privileges. A user can then access a form login without being authenticated
363363
as a unique user (otherwise an infinite redirection loop would happen
364-
asking the user to authenticate while trying to doing so).
364+
asking the user to authenticate while trying to do so).
365365

366366
You'll learn later how to deny access to certain URLs, controllers, or part of
367367
templates.
@@ -729,9 +729,11 @@ Checking to see if a User is Logged In (IS_AUTHENTICATED_FULLY)
729729
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
730730

731731
If you *only* want to check if a user is logged in (you don't care about roles),
732-
you have two options. First, if you've given *every* user ``ROLE_USER``, you can
733-
check for that role. Otherwise, you can use a special "attribute" in place of a
734-
role::
732+
you have the following two options.
733+
734+
Firstly, if you've given *every* user ``ROLE_USER``, you can check for that role.
735+
736+
Secondly, you can use a special "attribute" in place of a role::
735737

736738
// ...
737739

@@ -1038,8 +1040,8 @@ Frequently Asked Questions
10381040
you authenticate against one firewall, you will *not* be authenticated against
10391041
any other firewalls automatically. Different firewalls are like different security
10401042
systems. To do this you have to explicitly specify the same
1041-
:ref:`reference-security-firewall-context` for different firewalls. But usually
1042-
for most applications, having one main firewall is enough.
1043+
:ref:`reference-security-firewall-context` for different firewalls. However,
1044+
one main firewall is usually sufficient for the needs of most applications.
10431045

10441046
**Security doesn't seem to work on my Error Pages**
10451047
As routing is done *before* security, 404 error pages are not covered by

0 commit comments

Comments
 (0)