Roles de usuarios
This commit is contained in:
parent
f67f042c3b
commit
0c9d177f79
|
|
@ -4,6 +4,9 @@ target/
|
||||||
!**/src/main/**/target/
|
!**/src/main/**/target/
|
||||||
!**/src/test/**/target/
|
!**/src/test/**/target/
|
||||||
|
|
||||||
|
### Audios (binarios grandes, subir directamente al servidor) ###
|
||||||
|
src/main/resources/static/audios/
|
||||||
|
|
||||||
### Credenciales (nunca subir al repo) ###
|
### Credenciales (nunca subir al repo) ###
|
||||||
.env
|
.env
|
||||||
*.env
|
*.env
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
<!-- Usuario / sesión -->
|
<!-- Usuario / sesión -->
|
||||||
<div class="topbar-user">
|
<div class="topbar-user">
|
||||||
<span sec:authorize="isAuthenticated()" class="user-email" sec:authentication="principal.username"></span>
|
<span sec:authorize="isAuthenticated()" class="user-email" sec:authentication="principal.username"></span>
|
||||||
|
<a sec:authorize="hasRole('ADMIN')" th:href="@{/admin/usuarios}" class="btn-login" style="margin-right:.5rem">Admin</a>
|
||||||
<form sec:authorize="isAuthenticated()" th:action="@{/logout}" method="post" style="margin:0">
|
<form sec:authorize="isAuthenticated()" th:action="@{/logout}" method="post" style="margin:0">
|
||||||
<button type="submit" class="btn-logout">Salir</button>
|
<button type="submit" class="btn-logout">Salir</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
<!-- Usuario / sesión -->
|
<!-- Usuario / sesión -->
|
||||||
<div class="topbar-user">
|
<div class="topbar-user">
|
||||||
<span sec:authorize="isAuthenticated()" class="user-email" sec:authentication="principal.username"></span>
|
<span sec:authorize="isAuthenticated()" class="user-email" sec:authentication="principal.username"></span>
|
||||||
|
<a sec:authorize="hasRole('ADMIN')" th:href="@{/admin/usuarios}" class="btn-login" style="margin-right:.5rem">Admin</a>
|
||||||
<form sec:authorize="isAuthenticated()" th:action="@{/logout}" method="post" style="margin:0">
|
<form sec:authorize="isAuthenticated()" th:action="@{/logout}" method="post" style="margin:0">
|
||||||
<button type="submit" class="btn-logout">Salir</button>
|
<button type="submit" class="btn-logout">Salir</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue