mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Big refactoring for context.User, and how current user info is fetching, now included collaborator role
This commit is contained in:
@@ -12,8 +12,8 @@ import (
|
||||
func getFrontendSettings(c *middleware.Context) (map[string]interface{}, error) {
|
||||
accountDataSources := make([]*m.DataSource, 0)
|
||||
|
||||
if c.Account != nil {
|
||||
query := m.GetDataSourcesQuery{AccountId: c.Account.Id}
|
||||
if c.IsSignedIn {
|
||||
query := m.GetDataSourcesQuery{AccountId: c.UsingAccountId}
|
||||
err := bus.Dispatch(&query)
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user