From 19e4b858d50937905c931bdef2f49c91db0ad9d6 Mon Sep 17 00:00:00 2001 From: Rima Shah Date: Tue, 19 Dec 2023 10:36:05 -0700 Subject: [PATCH] using a defined constant instead of hard coded value --- traffic_ops/traffic_ops_golang/profile/profiles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traffic_ops/traffic_ops_golang/profile/profiles.go b/traffic_ops/traffic_ops_golang/profile/profiles.go index ebae86a7c0..efaa0380b4 100644 --- a/traffic_ops/traffic_ops_golang/profile/profiles.go +++ b/traffic_ops/traffic_ops_golang/profile/profiles.go @@ -441,7 +441,7 @@ func Read(w http.ResponseWriter, r *http.Request) { for _, p := range profileList { // Attach Parameters if the 'id' parameter is sent if _, ok := inf.Params["id"]; ok { - p.Parameters, err = ReadParameters(inf.Tx, inf.User, p.ID, inf.User.Can("PARAMETER:SECURE-READ")) + p.Parameters, err = ReadParameters(inf.Tx, inf.User, p.ID, inf.User.Can(tc.PermParameterSecureRead)) if err != nil { api.HandleErr(w, r, tx.Tx, http.StatusInternalServerError, nil, fmt.Errorf("profile read: error reading parameters for a profile: %w", err)) return