Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Security] remove deprecated code paths #33697

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
Sep 25, 2019

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Sep 25, 2019

Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

@fabpot
Copy link
Member

fabpot commented Sep 25, 2019

Thank you @xabbuh.

fabpot added a commit that referenced this pull request Sep 25, 2019
This PR was merged into the 5.0-dev branch.

Discussion
----------

[Security] remove deprecated code paths

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Commits
-------

2b6ce01 remove deprecated code paths
@fabpot fabpot merged commit 2b6ce01 into symfony:master Sep 25, 2019
@ostrolucky
Copy link
Contributor

shouldn't the change be reflected in docblock?

@xabbuh
Copy link
Member Author

xabbuh commented Sep 26, 2019

@ostrolucky Can you create a PR (targetting the 4.4 branch)?

}

return $this->accessDecisionManager->decide($token, $attributes, $subject);
return $this->accessDecisionManager->decide($token, (array) $attributes, $subject);
Copy link
Contributor

Choose a reason for hiding this comment

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

An array cast doesn't work here since $attributes can be an object, we could use [$attributes] instead since it can't be an array.

Copy link
Member

Choose a reason for hiding this comment

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

only if $attributes is not null
would you mind sending a PR (with a test case ideally)?

Copy link
Contributor

Choose a reason for hiding this comment

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

Even if $attributes is null, we should pass [null] to decide.

PR created : #33721

fabpot added a commit that referenced this pull request Sep 26, 2019
This PR was merged into the 5.0-dev branch.

Discussion
----------

[Security] Fix isGranted with object attribute

| Q             | A
| ------------- | ---
| Branch?       | master (the added test could be backported to older branches)
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #33697 (comment)
| License       | MIT
| Doc PR        |

Fix calls to isGranted with `$attribute` beeing an object.

Commits
-------

3a5fd48 Fix isGranted with object attribute
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.

6 participants