Skip to content
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

Simplify the logic in PermissionSecurityRule #2428

Merged
merged 2 commits into from
May 23, 2024

Conversation

timyates
Copy link
Collaborator

Using instanceof template variables, RouteMatch#findAnnotation and Streams with flatMap we can simplify the logic in the PermissionSecurityRule.

The test had to be updated to mock findAnnotation instead of getAnnotation

Using instanceof template variables, RouteMatch#findAnnotation and Streams with flatMap we can simplify the logic in the PermissionSecurityRule.

The test had to be updated to mock findAnnotation instead of getAnnotation
@timyates timyates added server security Security related issues labels May 22, 2024
@timyates timyates self-assigned this May 22, 2024
@timyates timyates linked an issue May 22, 2024 that may be closed by this pull request
@ZacharyKlein ZacharyKlein merged commit 9f1ddce into develop May 23, 2024
1 check passed
@timyates timyates deleted the feature-2427/simplify-permission-rule branch May 23, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Security related issues server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PermissionSecurityRule can be simplified
3 participants