-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-coretype: enhancementA general enhancementA general enhancement
Milestone
Description
Summary
Adding multiple security annotations to a method like this:
@RolesAllowed("ROLE_ADMIN")
@PostAuthorize("hasPermission(...)")
public SomeObject doSomething() {
}
leads to the effect, that @RolesAllowed
doesn't seem to be checked anymore if @PostAuthorize
returned true.
Actual Behavior
Since @PostAuthorize
returns true, @RolesAllowed
seems not evaluated anymore.
If I remove the @PostAuthorize
access is denied as expected.
Is there something to change the actual behavior?
Expected Behavior
All annotations are processed and if at least one denies access, the complete access should be denied.
Configuration
See code snippet above.
Version
3.2.5-RELEASE
Metadata
Metadata
Assignees
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-coretype: enhancementA general enhancementA general enhancement