This commit is contained in:
ryan committed 2018-03-15 12:57:09 +01:00
1 parent 3aed867b4b
commit ad88e5398c
3 files changed
+15 -14

No files matched your search

+1 -3
View File
@@ -180,9 +180,7 @@ func (proxy *DataSourceProxy) getDirector() func(req *http.Request) {
func (proxy *DataSourceProxy) validateRequest() error {
if proxy.ds.Type == m.DS_INFLUXDB {
if proxy.ctx.Query("db") != proxy.ds.Database {
if !proxy.ds.JsonData.Get("allowDatabaseQuery").MustBool(false) {
return errors.New("Datasource is not configured to allow this database")
}
return errors.New("Datasource is not configured to allow this database")
}
}