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

Libera la ruta para obtener el sitemap.xml

parent 87e81d04
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -60,6 +60,8 @@ public class Oauth2SecurityConfiguration {
			
			http.authorizeRequests().antMatchers(HttpMethod.POST, "/**/utils/geo/convert2geojson").permitAll();
			
			http.authorizeRequests().antMatchers(HttpMethod.GET, "/sitemap.xml").permitAll();

			http.authorizeRequests().antMatchers(HttpMethod.GET, "/**/activitycategories").access(
					"#oauth2.hasScope('write') and "
					+ "hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR')");
@@ -103,10 +105,6 @@ public class Oauth2SecurityConfiguration {
					"#oauth2.hasScope('read') or #oauth2.hasScope('write') and "
					+ "hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR')");
			
			http.authorizeRequests().antMatchers(HttpMethod.GET, "/sitemap.xml").access(
					"#oauth2.hasScope('read') or #oauth2.hasScope('write') and "
					+ "hasAnyRole('ROLE_ADMINISTRATOR')");
			
			http.authorizeRequests().antMatchers("/**/convert2redmic/**").access(
					"#oauth2.hasScope('read') or #oauth2.hasScope('write') and "
					+ "hasAnyRole('ROLE_ADMINISTRATOR')");