Skip to content

Commit

Permalink
Remove unnecessary brackets from filter
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
Pagan Gazzard committed Dec 18, 2018
1 parent e85b633 commit 80f8463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion balena/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (a *authHandler) getUserKeys(username string) ([]ssh.PublicKey, error) {

filter := pinejs.QueryOption{
Type: pinejs.Filter,
Content: []string{fmt.Sprintf("user/any(u:((tolower(u/username)) eq ('%s')))",
Content: []string{fmt.Sprintf("user/any(u:tolower(u/username) eq '%s')",
strings.ToLower(username))},
Raw: true}
fields := pinejs.QueryOption{
Expand Down

0 comments on commit 80f8463

Please sign in to comment.