@@ -44,8 +44,6 @@ Take the following ``access_control`` entries as an example:
44
44
- { path: '^/admin', roles: ROLE_USER_IP, ip: 127.0.0.1 }
45
45
- { path: '^/admin', roles: ROLE_USER_HOST, host: symfony\.com$ }
46
46
- { path: '^/admin', roles: ROLE_USER_METHOD, methods: [POST, PUT] }
47
- # when defining multiple roles, the behavior depends on the strategy used in Access Decission Manager
48
- - { path: '^/admin', roles: [ROLE_MANAGER, ROLE_ADMIN] }
49
47
50
48
.. code-block :: xml
51
49
@@ -63,8 +61,6 @@ Take the following ``access_control`` entries as an example:
63
61
<rule path =" ^/admin" role =" ROLE_USER_IP" ip =" 127.0.0.1" />
64
62
<rule path =" ^/admin" role =" ROLE_USER_HOST" host =" symfony\.com$" />
65
63
<rule path =" ^/admin" role =" ROLE_USER_METHOD" methods =" POST, PUT" />
66
- <!-- when defining multiple roles, the behavior depends on the strategy used in Access Decission Manager -->
67
- <rule path =" ^/admin" roles =" ROLE_ADMIN, ROLE_MANAGER" />
68
64
</config >
69
65
</srv : container >
70
66
@@ -95,11 +91,6 @@ Take the following ``access_control`` entries as an example:
95
91
'roles' => 'ROLE_USER_METHOD',
96
92
'methods' => 'POST, PUT',
97
93
],
98
- [
99
- 'path' => '^/admin',
100
- // when defining multiple roles, the behavior depends on the strategy used in Access Decission Manager
101
- 'roles' => ['ROLE_MANAGER', 'ROLE_ADMIN'],
102
- ],
103
94
],
104
95
]);
105
96
@@ -156,13 +147,7 @@ options:
156
147
157
148
* ``roles `` If the user does not have the given role, then access is denied
158
149
(internally, an :class: `Symfony\\ Component\\ Security\\ Core\\ Exception\\ AccessDeniedException `
159
- is thrown). If this value is an array of multiple roles, the user must have:
160
-
161
- * at least one of them when using the default ``affirmative `` strategy.
162
- * more granted than denied roles when using the ``consensus `` strategy.
163
- * all of them when using the ``unanimous `` strategy.
164
-
165
- For more details about different strategies, see :ref: `Access Decision Manager <components-security-access-decision-manager >`.
150
+ is thrown).
166
151
167
152
* ``allow_if `` If the expression returns false, then access is denied;
168
153
0 commit comments