Commit f417d9aa by Torkel Ödegaard

Merge pull request #1592 from jwilder/jw-fixes

Anonymous access fixes
parents b91b47fc 13206fbb
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment