-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Add the ability for voter to return decision reason #43147
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
81f7499
Add the ability for voter to return decision reason
yellow1912 85a9b3d
Create mock with DecisionManager class
yellow1912 293a057
Fix phpunit test errors
yellow1912 66d49ac
Standardize Voter code
yellow1912 b43c6e5
Remove AccessTrait
yellow1912 cba2283
Change $access property to private as requested
yellow1912 6675182
Remove bool return to avoid BC
yellow1912 c15b796
Fix return typehint for decide method
yellow1912 7e5feef
Switch to using constructor for Vote
yellow1912 55bc4cd
Fix AccessDeniedException
yellow1912 219a3be
Fix coding standards
yellow1912 8c5fcb0
Fix test results
yellow1912 d970920
Fix deprecation to match with test
yellow1912 a9578c4
Fix decide method deprecation test matching
yellow1912 1357b53
Fix tests in AccessListenerTest
yellow1912 b949317
Add missing AbstractToken in AccessListenerTest
yellow1912 6b9ec12
getDecisionLog return object, not boolean
yellow1912 dfec312
Attempt to fix test in AccessListenerTest
yellow1912 95e9682
Fix testAccessDecisionManagerCalledByVoter
yellow1912 282c972
Add mising class in test
yellow1912 5993a1a
Fix coding standards
yellow1912 04159fd
Fix issue with final class mock
yellow1912 8b4430d
Fix issue with final class mock
yellow1912 e2212f6
Fix issue with final class mock
yellow1912 4f52a2c
Update version in deprecation message
yellow1912 de1f7e3
Fix BC with VoteEvent
yellow1912 7d4e955
Fix deprecation version
yellow1912 7589a16
Rename vote $reason to $message, $parameters to $context
yellow1912 8aacd94
Add back return typehint in phpdoc
yellow1912 d776986
Fix coding standard
yellow1912 991857d
Add more checkings for deprecation notices inside tests
yellow1912 504ec26
Merge test code with latest 5.4
yellow1912 9d59fdd
Allow getAccessDecision to return null in AccessDeniedException
yellow1912 7a4dc72
Merge security.html.twig with new changes
yellow1912 93c0c10
Fix coding standards
yellow1912 5ebf1b5
Add missing dot to comply with standards
yellow1912 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rename vote $reason to $message, $parameters to $context
- Loading branch information
commit 7589a16facd12e0000c528d392269394e5bde23c
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.