Skip to content

Conversation

bocharsky-bw
Copy link
Contributor

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.

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.
@javiereguiluz
Copy link
Member

👍

@javiereguiluz
Copy link
Member

@bocharsky-bw thanks for this fix. This is a very nice catch because the current config is really wrong. Luckily we use @Security in the admin controller. Otherwise, we wouldn't have any security protection!

@javiereguiluz javiereguiluz merged commit 07a1294 into symfony:master Jul 10, 2016
javiereguiluz added a commit that referenced this pull request Jul 10, 2016
…ocharsky-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
@bocharsky-bw bocharsky-bw deleted the patch-4 branch July 10, 2016 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants