fix: sql search permissions filter fix

This commit is contained in:
Torkel Ödegaard
2018-02-13 16:49:00 +01:00
parent 4d5a24a6c4
commit e3c3f3ce4c
4 changed files with 53 additions and 47 deletions
+1 -4
View File
@@ -153,10 +153,7 @@ func (sb *SearchBuilder) buildMainQuery() {
sb.sql.WriteString(` WHERE `)
sb.buildSearchWhereClause()
sb.sql.WriteString(`
LIMIT ?) as ids
INNER JOIN dashboard on ids.id = dashboard.id
`)
sb.sql.WriteString(` LIMIT ?) as ids INNER JOIN dashboard on ids.id = dashboard.id `)
sb.params = append(sb.params, sb.limit)
}