Skip to content

Commit 2f4220b

Browse files
committed
bug #364 Add available locales to the admin path in access control (bocharsky-bw)
This PR was merged into the master branch. Discussion ---------- Add available locales to the admin path in access control As I realized, only `@Security` annotation works in admin `BlogController` for now. Actually, we don't have `/admin` URL, all admin pages are prefixed with a locale. Commits ------- 07a1294 Add available locales to the admin path in access control
2 parents 564d681 + 07a1294 commit 2f4220b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/config/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ security:
4242
access_control:
4343
# this is a catch-all for the admin area
4444
# additional security lives in the controllers
45-
- { path: ^/admin, roles: ROLE_ADMIN }
45+
- { path: '^/(%app_locales%)/admin', roles: ROLE_ADMIN }

0 commit comments

Comments
 (0)