Skip to content

Commit 8f42c86

Browse files
Use AuthorizationInterceptorsOrder for Post Authorize Method Interceptors
Closes gh-14720
1 parent 5dae6da commit 8f42c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/springframework/security/authorization/method/AuthorizationManagerAfterMethodInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public static AuthorizationManagerAfterMethodInterceptor postAuthorize(
9393
PostAuthorizeAuthorizationManager authorizationManager) {
9494
AuthorizationManagerAfterMethodInterceptor interceptor = new AuthorizationManagerAfterMethodInterceptor(
9595
AuthorizationMethodPointcuts.forAnnotations(PostAuthorize.class), authorizationManager);
96-
interceptor.setOrder(500);
96+
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE.getOrder());
9797
return interceptor;
9898
}
9999

0 commit comments

Comments
 (0)