redirect "permission denied" requests to "/" (#10773)

This commit is contained in:
Alexander Zobnin 2018-02-05 20:17:47 +03:00 committed by Torkel Ödegaard
parent 24d882e7d8
commit f97be541af

View File

@ -42,8 +42,7 @@ func accessForbidden(c *Context) {
return return
} }
c.SetCookie("redirect_to", url.QueryEscape(setting.AppSubUrl+c.Req.RequestURI), 0, setting.AppSubUrl+"/") c.Redirect(setting.AppSubUrl + "/")
c.Redirect(setting.AppSubUrl + "/login")
} }
func notAuthorized(c *Context) { func notAuthorized(c *Context) {