You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2018/07/12 01:40:16 UTC
[trafficcontrol] branch master updated: TO Go GET /user/current
should have 'roleName' not 'rolename'
This is an automated email from the ASF dual-hosted git repository.
mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new fbe294e TO Go GET /user/current should have 'roleName' not 'rolename'
fbe294e is described below
commit fbe294e4ccb1a2d5fa33ff5ae2c450e9d62f13ef
Author: Rawlin Peters <ra...@comcast.com>
AuthorDate: Wed Jul 11 17:42:07 2018 -0600
TO Go GET /user/current should have 'roleName' not 'rolename'
The field needs to be camelcased like it is in the Perl version,
otherwise clients are broken (i.e. TP which checks this field when
determining if a user can automatically fulfill a DSR).
---
lib/go-tc/users.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/go-tc/users.go b/lib/go-tc/users.go
index 728908c..7c4e8ce 100644
--- a/lib/go-tc/users.go
+++ b/lib/go-tc/users.go
@@ -109,7 +109,7 @@ type UserCurrent struct {
PostalCode *string `json:"postalCode"`
PublicSSHKey *string `json:"publicSshKey,omitempty"`
Role *int `json:"role,omitempty"`
- RoleName *string `json:"rolename,omitempty"`
+ RoleName *string `json:"roleName,omitempty"`
StateOrProvince *string `json:"stateOrProvince"`
Tenant *string `json:"tenant"`
TenantID *uint64 `json:"tenantId"`