mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 17:06:57 -06:00
commit
f417d9aa19
@ -78,7 +78,7 @@ auto_assign_org_role = Viewer
|
||||
; enable anonymous access
|
||||
enabled = false
|
||||
; specify organization name that should be used for unauthenticated users
|
||||
org_name = Main org.
|
||||
org_name = main
|
||||
; specify role for unauthenticated users
|
||||
org_role = Viewer
|
||||
|
||||
|
@ -75,7 +75,7 @@ func GetContextHandler() macaron.Handler {
|
||||
} else if setting.AnonymousEnabled {
|
||||
orgQuery := m.GetOrgByNameQuery{Name: setting.AnonymousOrgName}
|
||||
if err := bus.Dispatch(&orgQuery); err != nil {
|
||||
log.Error(3, "Anonymous access organization error", nil)
|
||||
log.Error(3, "Anonymous access organization error: '%s': %s", setting.AnonymousOrgName, err)
|
||||
} else {
|
||||
ctx.IsSignedIn = false
|
||||
ctx.AllowAnonymous = true
|
||||
|
Loading…
Reference in New Issue
Block a user