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 2021/08/25 14:22:40 UTC

[GitHub] [trafficcontrol] shamrickus commented on a change in pull request #6135: Endpoint Required Permissions

shamrickus commented on a change in pull request #6135:
URL: https://github.com/apache/trafficcontrol/pull/6135#discussion_r695804468



##########
File path: traffic_ops/traffic_ops_golang/auth/authorize.go
##########
@@ -42,6 +42,26 @@ type CurrentUser struct {
 	TenantID     int            `json:"tenantId" db:"tenant_id"`
 	Role         int            `json:"role" db:"role"`
 	Capabilities pq.StringArray `json:"capabilities" db:"capabilities"`
+	perms        map[string]struct{}

Review comment:
       Any reason `perms` is lowercase?




-- 
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