Loading src/main/java/es/redmic/user/config/Oauth2SecurityConfiguration.java +4 −4 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ public class Oauth2SecurityConfiguration { .antMatchers(HttpMethod.POST, "/user/activateAccount/**/").permitAll(); http.authorizeRequests().antMatchers("/**/").access( "#oauth2.hasScope('read') or #oauth2.hasScope('write') and hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR', 'ROLE_USER')"); "#oauth2.hasScope('read') or #oauth2.hasScope('write') and hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_MANAGER', 'ROLE_COLLABORATOR', 'ROLE_USER')"); } } } Loading
src/main/java/es/redmic/user/config/Oauth2SecurityConfiguration.java +4 −4 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ public class Oauth2SecurityConfiguration { .antMatchers(HttpMethod.POST, "/user/activateAccount/**/").permitAll(); http.authorizeRequests().antMatchers("/**/").access( "#oauth2.hasScope('read') or #oauth2.hasScope('write') and hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR', 'ROLE_USER')"); "#oauth2.hasScope('read') or #oauth2.hasScope('write') and hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_MANAGER', 'ROLE_COLLABORATOR', 'ROLE_USER')"); } } }