fix: permission on nav (#3656)

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Max Peintner
2022-05-18 12:16:11 +00:00
committed by GitHub
co-authored by Livio Amstutz
parent 5901991dd3
commit 17baf252dd
9 changed files with 42 additions and 25 deletions
@@ -49,9 +49,11 @@
</ng-container>
</div>
<button mat-button class="show-all" [routerLink]="['/orgs']" (click)="closedCard.emit()">
{{ 'MENU.SHOWORGS' | translate }}
</button>
<ng-template cnslHasRole [hasRole]="['iam.read']">
<button mat-button class="show-all" [routerLink]="['/orgs']" (click)="closedCard.emit()">
{{ 'MENU.SHOWORGS' | translate }}
</button>
</ng-template>
<ng-template cnslHasRole [hasRole]="['org.create', 'iam.write']">
<button mat-button [routerLink]="['/org/create']" (click)="closedCard.emit()">