Skip to content

Commit

Permalink
employee rights
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Cyprian committed Jan 14, 2017
1 parent 0fae9b2 commit e1eecce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/main/java/security/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ public AuthenticationProvider authProvider(){
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/", "/home/", "/machine/","/login/", "/accessdenied").permitAll()
.antMatchers("/rental/list").hasAnyAuthority("ADMIN", "CUSTOMER")
.antMatchers("/user/**", "/revision/**", "/rental/edit/**", "/rental/new", "/rental/delete").hasAuthority("ADMIN")
.antMatchers("/rental/list").hasAnyAuthority("ADMIN", "CUSTOMER", "EMPLOYEE")
.antMatchers("/user/delete", "/revision/**", "/rental/edit/**", "/rental/new", "/rental/delete").hasAuthority("ADMIN")
.antMatchers("/user/", "/revision/**", "/rental/edit/**", "/rental/new", "/rental/delete").hasAuthority("EMPLOYEE")
//.anyRequest().authenticated()
.and()
.formLogin()
Expand Down

0 comments on commit e1eecce

Please sign in to comment.