Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Security] fixed DebugAccessDecisionManager::setVoters() #19272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2016

Conversation

HeahDude
Copy link
Contributor

@HeahDude HeahDude commented Jul 2, 2016

Q A
Branch? 3.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets schmittjoh/JMSSecurityExtraBundle#207
License MIT
Doc PR ~

@HeahDude
Copy link
Contributor Author

HeahDude commented Jul 2, 2016

@wouterj
Copy link
Member

wouterj commented Jul 2, 2016

👍 This check makes much more sense imo

Status: reviewed

@HeahDude
Copy link
Contributor Author

HeahDude commented Jul 2, 2016

Tests are failing :(

Status: Needs Work

@@ -62,7 +62,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
*/
public function setVoters(array $voters)
{
if (!$this->manager instanceof AccessDecisionManager) {
if (!method_exists($this->voters, 'setVoters')) {
Copy link
Member

Choose a reason for hiding this comment

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

Am I missing something or you are calling method_exists on an array?
Should it not be !method_exists($this->manager, 'setVoters') instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of courses! Went to quickly on this one, thanks!

@HeahDude HeahDude force-pushed the fix/debug-adm-voters branch from df4c4b8 to c1a2a0a Compare July 2, 2016 23:08
@HeahDude
Copy link
Contributor Author

HeahDude commented Jul 2, 2016

Status: Needs Review

@fabpot
Copy link
Member

fabpot commented Jul 3, 2016

Thank you @HeahDude.

@fabpot fabpot merged commit c1a2a0a into symfony:3.1 Jul 3, 2016
fabpot added a commit that referenced this pull request Jul 3, 2016
…HeahDude)

This PR was merged into the 3.1 branch.

Discussion
----------

[Security] fixed DebugAccessDecisionManager::setVoters()

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | schmittjoh/JMSSecurityExtraBundle#207
| License       | MIT
| Doc PR        | ~

Commits
-------

c1a2a0a [Security] fixed DebugAccessDecisionManager::setVoters()
@HeahDude HeahDude deleted the fix/debug-adm-voters branch July 3, 2016 10:16
@fabpot fabpot mentioned this pull request Jul 30, 2016
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.