Skip to content

Commit

Permalink
using a defined constant instead of hard coded value
Browse files Browse the repository at this point in the history
  • Loading branch information
rimashah25 committed Dec 19, 2023
1 parent 198e946 commit 19e4b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traffic_ops/traffic_ops_golang/profile/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19e4b85

Please sign in to comment.