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/12/02 00:06:31 UTC

[GitHub] [trafficcontrol] TaylorCFrey commented on a change in pull request #6389: Update PUT user/current to work with v4 User Roles

TaylorCFrey commented on a change in pull request #6389:
URL: https://github.com/apache/trafficcontrol/pull/6389#discussion_r760665654



##########
File path: traffic_ops/traffic_ops_golang/user/current.go
##########
@@ -309,7 +316,16 @@ func ReplaceCurrent(w http.ResponseWriter, r *http.Request) {
 		}
 	}
 
-	if err = updateUser(&user, tx, changePasswd, changeConfirmPasswd); err != nil {
+	if useV4User {
+		userV4 = user.Upgrade()
+	}
+
+	if useV4User {
+		err = updateUserV4(userV4, inf.Tx)

Review comment:
       Good catch, and actually I didn't want to use `UpdateQueryV40` anyways. Hold pls for an update.




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