No security check for inherited methods.
I use spring-security-3.0.5 and got two class like
class BaseClass {
public methodOne() {
}
public methodTwo(){
}
}
@PreAuthorize("hasRole('ROLE_ADMIN')")
class CustomeClass extends BaseClass {
public methodThree() {
}
}
When I call the CustomeClass.methodThree() and I am not ADMIN I get AccessDeniedException,
but when I try to call the inherited methods nothing happens I can do it without to get the exception.
Do I miss a configuration or its not possible with spring security to do this ?