Fix for bug blocking anon queries

This commit is contained in:
Vikram Rangnekar
2020-03-21 20:11:04 -04:00
parent 7a450b16ba
commit 01e488b69d
2 changed files with 4 additions and 6 deletions

View File

@ -59,12 +59,6 @@ func buildRoleStmt(gql, vars []byte, role string) ([]stmt, error) {
return nil, err
}
// For the 'anon' role in production only compile
// queries for tables defined in the config file.
if conf.Production && ro.Name == "anon" && !hasTablesWithConfig(qc, ro) {
return nil, errors.New("query contains tables with no 'anon' role config")
}
stmts := []stmt{stmt{role: ro, qc: qc}}
w := &bytes.Buffer{}