Metoda HASAUTHORity nie działa z tymeleaf
@EnableGlobalMethodSecurity(prePostEnabled = true) in Security configuration.
Vijay Patwal
@EnableGlobalMethodSecurity(prePostEnabled = true) in Security configuration.