Skip to content

Commit

Permalink
fix: another instance of user_name should be lowercased
Browse files Browse the repository at this point in the history
  • Loading branch information
m0nhawk authored Jul 3, 2024
1 parent e0afd86 commit 792db81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arborist/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"database/sql"
"encoding/json"
"fmt"
"strings"
"time"

"github.com/jmoiron/sqlx"
Expand Down Expand Up @@ -170,7 +171,7 @@ func fetchUserPolicyInfo(db *sqlx.DB, user_name string, policy_name string) (*Us
err := db.Select(
&policyInfoList,
stmt,
user_name, // $1
strings.ToLower(user_name), // $1
policy_name, // $2
)
if err != nil {
Expand Down

0 comments on commit 792db81

Please sign in to comment.