You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2022/07/15 16:15:20 UTC

[GitHub] [trafficcontrol] ocket8888 commented on a diff in pull request #6964: TPv2 Tenants table

ocket8888 commented on code in PR #6964:
URL: https://github.com/apache/trafficcontrol/pull/6964#discussion_r922315527


##########
experimental/traffic-portal/src/app/shared/tp-header/tp-header.component.html:
##########
@@ -48,4 +50,10 @@ <h1>{{title ? title : 'Welcome to Traffic Portal!'}}</h1>
 	<mat-menu #themeMenu="matMenu">
 		<button mat-menu-item *ngFor="let theme of themeSvc.themes" (click)="themeSvc.loadTheme(theme)">{{theme.name}}</button>
 	</mat-menu>
+	<mat-menu #usersMenu="matMenu">
+		<a mat-menu-item routerLink="/core/users" *ngIf="hasPermission('USER:READ')">View Users</a>
+		<button mat-button type="button" *ngIf="!hasPermission('USER:READ')">View Users</button>
+		<a mat-menu-item routerLink="/core/tenants" *ngIf="hasPermission('TENANT:READ')">View Tenants</a>
+		<button mat-button type="button" *ngIf="!hasPermission('TENANT:READ')">View Users</button>

Review Comment:
   Yes



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org