We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb0d64 commit e495ddaCopy full SHA for e495dda
src/main/resources/templates/login/homeLayout.html
@@ -1,5 +1,7 @@
1
<!DOCTYPE html>
2
-<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
+<html xmlns:th="http://www.thymeleaf.org"
3
+ xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
4
+ xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
5
<head>
6
<meta charset="UTF-8"></meta>
7
<!-- BootStrap -->
@@ -30,7 +32,7 @@
30
32
<li role="presentation">
31
33
<a th:href="@{'/userList'}">ユーザー管理</a>
34
</li>
- <li role="presentation">
35
+ <li role="presentation" sec:authorize="hasRole('ADMIN')">
36
<a th:href="@{'/admin'}">管理者用画面</a>
37
38
</ul>
0 commit comments