updated go deps and added Enclose for grouped conditions for normalization

This commit is contained in:
Gani Georgiev
2023-01-26 22:24:39 +02:00
parent a27298d1ef
commit cf9e2a33bb
5 changed files with 63 additions and 34 deletions
+2 -2
View File
@@ -348,11 +348,11 @@ func (r *runner) processActiveProps() (*search.ResolverResult, error) {
// allow querying only auth records with emails marked as public
if prop == schema.FieldNameEmail && !r.allowHiddenFields {
result.AfterBuild = func(expr dbx.Expression) dbx.Expression {
return dbx.And(expr, dbx.NewExp(fmt.Sprintf(
return dbx.Enclose(dbx.And(expr, dbx.NewExp(fmt.Sprintf(
"[[%s.%s]] = TRUE",
r.activeTableAlias,
schema.FieldNameEmailVisibility,
)))
))))
}
}
File diff suppressed because one or more lines are too long