Skip to content

Commit

Permalink
update das regras de segurança e update da view de erro de permissão
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeuCamurca committed Aug 1, 2020
1 parent d2f4dbe commit 023488d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/com/seminario/security/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ protected void configure(HttpSecurity http) throws Exception{
.antMatchers(HttpMethod.GET, "/fichas").hasAnyRole("ADMIN","USER")
.antMatchers("/fichas/{id}").hasAnyRole("ADMIN","USER")
.antMatchers(HttpMethod.GET,"/cadastrarFicha").hasRole("ADMIN")
.antMatchers(HttpMethod.GET,"/deletar/{id}").hasRole("ADMIN")
.antMatchers(HttpMethod.POST,"/cadastrarFicha").hasRole("ADMIN")
.antMatchers(HttpMethod.GET,"/atualizarFicha").hasRole("ADMIN")
.antMatchers(HttpMethod.POST,"/atualizarFicha").hasRole("ADMIN")
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/error/403.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</nav>

<div class="card-body">
<h5 class="card-title" style="color: black; font-weight: bold;">Seu usuário não tem permissão para acessar a página requisitada!</h5>
<h5 class="card-title" style="color: black; font-weight: bold;">Seu usuário não tem permissão para realizar a operação selecionada!</h5>
<a href="/" class="btn btn-primary" style="margin-top: 20px;">Voltar</a>
</div>
</div>
Expand Down

0 comments on commit 023488d

Please sign in to comment.