fix: viewers can edit now works correctly

This commit is contained in:
Torkel Ödegaard
2017-12-15 14:19:49 +01:00
parent ed48d27d85
commit a8a5f8181b
5 changed files with 45 additions and 6 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ func initContextWithAnonymousUser(ctx *Context) bool {
ctx.IsSignedIn = false
ctx.AllowAnonymous = true
ctx.SignedInUser = &m.SignedInUser{}
ctx.SignedInUser = &m.SignedInUser{IsAnonymous: true}
ctx.OrgRole = m.RoleType(setting.AnonymousOrgRole)
ctx.OrgId = orgQuery.Result.Id
ctx.OrgName = orgQuery.Result.Name