Skip to content
New issue

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

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

Already on GitHub? # to your account

Pass content to DeadboltHandler.beforeAuthCheck as well #64

Merged
merged 2 commits into from
Nov 13, 2017
Merged

Pass content to DeadboltHandler.beforeAuthCheck as well #64

merged 2 commits into from
Nov 13, 2017

Conversation

mkurz
Copy link
Owner

@mkurz mkurz commented Nov 7, 2017

We should also be able to react to the content when returning a non-empty result in beforeAuthCheck (not just in onAuthFailure).

The content is the one passed to the @Constraint.
For @BeforeAccess this means it now also has a content parameter. Makes sense to me.

This enhancement allows me to generalise the code even better in one of my next pull requests (and therefore make the code safer).

The content is the one passed to the `@Constraint`.
For `@BeforeAccess` this means it now also has a `content` parameter.
@mkurz mkurz merged commit 1725ab5 into mkurz:master Nov 13, 2017
@mkurz mkurz deleted the contentEnhancement branch November 13, 2017 19:15
@mkurz mkurz added this to the 2.6.4 milestone Feb 18, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant