Ignore:
Timestamp:
05/05/24 01:27:16 (7 months ago)
Author:
ppaunovski <paunovskipavel@…>
Branches:
master
Children:
baf4cc4
Parents:
4d026a5
Message:

Added roles to Users and some minor changes

File:
1 edited

Legend:

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

    r4d026a5 r8b875e6  
    1010      <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
    1111        <ul class="navbar-nav m-auto">
    12           <li sec:hasRole class="nav-item m-auto">
     12          <li sec:authorize="hasRole('ROLE_PASSENGER')" class="nav-item m-auto">
    1313            <a class="nav-link active" href="/bilet">Bileti</a>
    1414          </li>
    15           <li class="nav-item m-auto">
     15          <li sec:authorize="hasAnyRole('ROLE_PASSENGER')" class="nav-item m-auto">
    1616            <a class="nav-link active" href="/vozenje">Vozenja</a>
    1717          </li>
    18           <li class="nav-item m-auto">
     18          <li sec:authorize="hasRole('ROLE_PASSENGER')" class="nav-item m-auto">
    1919            <a class="nav-link active" href="/kazna">Kazni</a>
    2020          </li>
    21           <li class="nav-item m-auto">
     21          <li sec:authorize="hasAnyRole('ROLE_CONDUCTOR', 'ROLE_DRIVER')" class="nav-item m-auto">
    2222            <a class="nav-link active" href="/instanca-na-linija">Instanci</a>
    2323          </li>
Note: See TracChangeset for help on using the changeset viewer.