Skip to content

Commit 46a0b0a

Browse files
committed
Fix urls
1 parent db259a8 commit 46a0b0a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

backend/src/main/java/es/codeurjc/wallypop/security/WebSecurityConfig.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ protected void configure(HttpSecurity http) throws Exception {
6868

6969

7070
/* ADMIN */
71-
http.authorizeRequests().antMatchers("/categoriasAdmin").hasAnyRole("ADMIN");
72-
http.authorizeRequests().antMatchers("/categoriasAdminListado").hasAnyRole("ADMIN");
73-
http.authorizeRequests().antMatchers("/grafico").hasAnyRole("ADMIN");
74-
http.authorizeRequests().antMatchers("/perfilAdmin").hasAnyRole("ADMIN");
75-
http.authorizeRequests().antMatchers("/reporteAdmin").hasAnyRole("ADMIN");
76-
http.authorizeRequests().antMatchers("/visualizaReporte").hasAnyRole("ADMIN");
71+
http.authorizeRequests().antMatchers("/category").hasAnyRole("ADMIN");
72+
http.authorizeRequests().antMatchers("/categoryList").hasAnyRole("ADMIN");
73+
http.authorizeRequests().antMatchers("/graphic").hasAnyRole("ADMIN");
74+
http.authorizeRequests().antMatchers("/profile").hasAnyRole("ADMIN");
75+
http.authorizeRequests().antMatchers("/reports").hasAnyRole("ADMIN");
76+
http.authorizeRequests().antMatchers("/showReport").hasAnyRole("ADMIN");
7777

7878
// Login form
7979
http.formLogin().loginPage("/login");

backend/src/main/resources/templates/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<div class="full-width hidden-md hidden-lg header-menu-mobile">
2626
<i class="fa fa-times header-menu-mobile-close-btn show-menu-mobile" aria-hidden="true"></i>
2727
{{#logged}}
28-
<a href="/perfil">
28+
<a href="/profile">
2929
<i class="fa fa-user NavBar-Nav-icon header-menu-mobile-icon" aria-hidden="true"></i>
3030
</a>
3131
{{/logged}}

0 commit comments

Comments
 (0)