Skip to content
Snippets Groups Projects

re #7973 changes of authorization - only admin can view pages assembly_new,...

Merged re #7973 changes of authorization - only admin can view pages assembly_new,...
Merged Michal Linha requested to merge enhancement/7973 into master
2 files
+ 15
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -84,6 +84,9 @@ public class AppConfig extends WebSecurityConfigurerAdapter implements WebMvcCon
http
.authorizeRequests()
.mvcMatchers("/login").permitAll()
.antMatchers("/assembly_new").hasRole("Administrátor")
.antMatchers("/assembly_edit").hasRole("Administrátor")
.antMatchers("/assembly_delete").hasRole("Administrátor")
.regexMatchers(HttpMethod.GET, "^/css/.*", "^/webfonts/.*").permitAll()
.anyRequest().authenticated()
.and()
Loading