Admin menu link only visisble to admins

This commit is contained in:
Rohan Sircar 2020-03-19 20:06:17 +05:30
parent be040162fd
commit 8a63379db7

View File

@ -96,7 +96,7 @@
<a href="#" class="nav-link">Contact</a> <a href="#" class="nav-link">Contact</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#" sec:authorize="isFullyAuthenticated()" th:href="@{/admin}" class="nav-link"> <a href="#" sec:authorize="hasRole('ROLE_ADMIN') || hasRole('ROLE_SUPER_USER')" th:href="@{/admin}" class="nav-link">
Admin Area Admin Area
</a> </a>
</li> </li>