Skip to content

Commit e495dda

Browse files
committed
Add auth controll views
1 parent ffb0d64 commit e495dda

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/resources/templates/login/homeLayout.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<!DOCTYPE html>
2-
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
2+
<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">
35
<head>
46
<meta charset="UTF-8"></meta>
57
<!-- BootStrap -->
@@ -30,7 +32,7 @@
3032
<li role="presentation">
3133
<a th:href="@{'/userList'}">ユーザー管理</a>
3234
</li>
33-
<li role="presentation">
35+
<li role="presentation" sec:authorize="hasRole('ADMIN')">
3436
<a th:href="@{'/admin'}">管理者用画面</a>
3537
</li>
3638
</ul>

0 commit comments

Comments
 (0)