Ignore:
Timestamp:
02/10/23 01:52:11 (23 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
ef84238
Parents:
73f0dbc
Message:

Profiles for user and worker

Location:
src/main/resources/templates
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/fragments/header.html

    r73f0dbc r7926d68  
    8383    </ul>
    8484    <ul class="menu-right">
    85         <th:block th:if="${#request.getRemoteUser() != null}">
     85        <th:block sec:authorize="hasAuthority('ROLE_ADMIN')" th:if="${#request.getRemoteUser() != null}">
    8686            <li class="reg">
    87                 <a href="/">
     87                <a href="/profileWorker">
     88                    <th:block th:text="${#request.getRemoteUser()}"></th:block>
     89                </a>
     90            </li>
     91        </th:block>
     92        <th:block sec:authorize="hasAuthority('ROLE_USER')" th:if="${#request.getRemoteUser() != null}">
     93            <li class="reg">
     94                <a href="/profileUser">
    8895                    <th:block th:text="${#request.getRemoteUser()}"></th:block>
    8996                </a>
Note: See TracChangeset for help on using the changeset viewer.