File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ which has this structure:
36
36
37
37
.. include :: /cookbook/security/voter_interface.rst.inc
38
38
39
- In this example, you 'll check if the user will have access to a specific
39
+ In this example, it 'll check if the user will have access to a specific
40
40
object according to your custom conditions (e.g. he must be the owner of
41
41
the object). If the condition fails, you'll return
42
42
``VoterInterface::ACCESS_DENIED ``, otherwise you'll return
@@ -140,7 +140,7 @@ You could store your Voter to check permission for the view and edit action like
140
140
}
141
141
142
142
That's it! The voter is done. The next step is to inject the voter into
143
- the security layer. This can be done easily through the service container.
143
+ the security layer.
144
144
145
145
Declaring the Voter as a Service
146
146
--------------------------------
You can’t perform that action at this time.
0 commit comments