From 80f8463b9c234d34c0c9340cb1f77a93987789a5 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Tue, 18 Dec 2018 16:52:49 +0000 Subject: [PATCH] Remove unnecessary brackets from filter Change-type: patch --- balena/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balena/auth.go b/balena/auth.go index 1f3a0bc..f2d3b1b 100644 --- a/balena/auth.go +++ b/balena/auth.go @@ -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{