BAEL-649 changing test content and some security changes to make all the tests work.
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
.disable()
|
||||
.authorizeRequests()
|
||||
.antMatchers("/ratings").hasRole("USER")
|
||||
.antMatchers("/ratings/all").hasAnyRole("USER", "ADMIN")
|
||||
.antMatchers("/ratings/all").hasRole("ADMIN")
|
||||
.anyRequest().authenticated()
|
||||
.and()
|
||||
.csrf()
|
||||
|
||||
Reference in New Issue
Block a user