71764: SiteRegisterGuard + hide register link when unauthorized

This commit is contained in:
Kristof De Langhe
2020-07-10 13:07:31 +02:00
parent 02fb4a4e4e
commit 7787a2d0e9
6 changed files with 43 additions and 3 deletions

View File

@@ -8,6 +8,6 @@
</ng-container>
<div class="dropdown-divider"></div>
<a class="dropdown-item" [routerLink]="[getRegisterPath()]">{{"login.form.new-user" | translate}}</a>
<a class="dropdown-item" *ngIf="canRegister$ | async" [routerLink]="[getRegisterPath()]">{{"login.form.new-user" | translate}}</a>
<a class="dropdown-item" [routerLink]="[getForgotPath()]">{{"login.form.forgot-password" | translate}}</a>
</div>