mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 17:22:13 +00:00
Polish gh-14219
This commit is contained in:
parent
1d769b5afc
commit
6e1605314a
@ -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"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user