Skip to content

Commit

Permalink
deny to view create route element on menu for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
dbistuer committed Nov 28, 2023
1 parent f71d620 commit 5f5074a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/navbar/navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<a class="nav-link dropdown-toggle" id="routeDropdown" role="button"
aria-haspopup="true" aria-expanded="false" ngbDropdownToggle>Routes</a>
<div class="dropdown-menu" aria-labelledby="routeDropdown" ngbDropdownMenu>
<a class="dropdown-item" [routerLinkActive]="'active'" [routerLinkActiveOptions]="{ exact: true }"
<a class="dropdown-item" *ngIf="isRole('user')" [routerLinkActive]="'active'" [routerLinkActiveOptions]="{ exact: true }"
[routerLink]="['/routes/create']"><span class="fas fa-user-circle"></span> Create</a>
<a class="dropdown-item" [routerLinkActive]="'active'" [routerLinkActiveOptions]="{ exact: true }"
[routerLink]="['/routes']"><span class="fas fa-user-circle"></span> List</a>
Expand Down

0 comments on commit 5f5074a

Please sign in to comment.