Commit e92b2e95 authored by Noel Alonso's avatar Noel Alonso
Browse files

Soluciona problema de permisos en settings

parent f4e77da5
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -51,7 +51,13 @@ public class Oauth2SecurityConfiguration {
			http.authorizeRequests().antMatchers(HttpMethod.PUT, "/**/settings/clone/**").permitAll();
			http.authorizeRequests().antMatchers(HttpMethod.OPTIONS, "/**/settings/**").permitAll();

			http.authorizeRequests().antMatchers("/**/settings/**").access(
			http.authorizeRequests().antMatchers(HttpMethod.DELETE, "/**/settings/**").access(
				"#oauth2.hasScope('write') and hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR', 'ROLE_USER')");

			http.authorizeRequests().antMatchers(HttpMethod.POST, "/**/settings/").access(
				"#oauth2.hasScope('write') and hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR', 'ROLE_USER')");

			http.authorizeRequests().antMatchers(HttpMethod.PUT, "/**/settings/*").access(
				"#oauth2.hasScope('write') and hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR', 'ROLE_USER')");

			http.authorizeRequests().antMatchers(HttpMethod.POST, "/**").access(