Fixed anonymous access mode, Closes #1586

This commit is contained in:
Torkel Ödegaard
2015-03-11 17:34:11 +01:00
parent f3d4d2782f
commit 477e035f2e
6 changed files with 25 additions and 31 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ import (
func getFrontendSettingsMap(c *middleware.Context) (map[string]interface{}, error) {
orgDataSources := make([]*m.DataSource, 0)
if c.IsSignedIn {
if c.OrgId != 0 {
query := m.GetDataSourcesQuery{OrgId: c.OrgId}
err := bus.Dispatch(&query)