Skip to content

Commit

Permalink
Polish gh-14219
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnr committed Nov 30, 2023
1 parent 1d769b5 commit 6e16053
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ companion object {
@Bean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
fun protectServicePointcut(): Advisor {
var pattern = AspectJExpressionPointcut();
val pattern = AspectJExpressionPointcut();
pattern.setExpression("execution(* com.mycompany.*Service.*(..))");
return new AuthorizationManagerBeforeMethodInterceptor(pattern, hasRole("USER"));
}
Expand Down

0 comments on commit 6e16053

Please sign in to comment.