srijeet0406 commented on a change in pull request #5974:
URL: https://github.com/apache/trafficcontrol/pull/5974#discussion_r658184979



##########
File path: traffic_ops/traffic_ops_golang/cachegroup/cachegroups.go
##########
@@ -611,12 +611,23 @@ func (cg *TOCacheGroup) Update(h http.Header) (error, 
error, int) {
                return userErr, sysErr, errCode
        }
 
+       cdns, err := dbhelpers.GetCDNsForCachegroup(cg.ReqInfo.Tx.Tx, cg.ID)
+       if err != nil {
+               return nil, err, http.StatusInternalServerError
+       }
+       for cdn, _ := range cdns {
+               userErr, sysErr, statusCode := 
dbhelpers.CheckIfCurrentUserCanModifyCDN(cg.ReqInfo.Tx.Tx, cdn, 
cg.ReqInfo.User.UserName)

Review comment:
       Should be fixed now.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to