Skip to content

Conversation

javiereguiluz
Copy link
Member

As mentioned in symfony/symfony#21701 this issue was fixed in 3.1 ... so 2.8 still has this issue.

@javiereguiluz
Copy link
Member Author

This one should be easy to review. We're just removing some contents that are not true for 2.8. Thanks!

The solution is to inject the ``service_container`` service and use it to get
the ``security.authorization_checker`` service and call to the ``isGranted()``
method. Another solution is to upgrade your Symfony version, because this issue
was fixed starting from Symfony 3.1.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linked ticket is mentioning the debug access decision manager introduced in 3.1 but how could this fix the problem of circular dependency for voters requiring the manager? Are we sure this is fixed? Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you remove this note, it should be good to merge.

@HeahDude HeahDude added this to the 2.8 milestone Jul 25, 2017
@wouterj
Copy link
Member

wouterj commented Nov 12, 2017

This will be a tricky one to merge up, but I'll take care of that. Thanks!

wouterj added a commit that referenced this pull request Nov 12, 2017
…eguiluz)

This PR was squashed before being merged into the 2.8 branch (closes #7524).

Discussion
----------

Updated "Checking for Roles inside a Voter" for 2.8

As mentioned in symfony/symfony#21701  this issue was fixed in 3.1 ... so 2.8 still has this issue.

Commits
-------

ee724b5 Updated "Checking for Roles inside a Voter" for 2.8
@wouterj wouterj closed this Nov 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants