mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
redirect "permission denied" requests to "/" (#10773)
This commit is contained in:
parent
24d882e7d8
commit
f97be541af
@ -42,8 +42,7 @@ func accessForbidden(c *Context) {
|
||||
return
|
||||
}
|
||||
|
||||
c.SetCookie("redirect_to", url.QueryEscape(setting.AppSubUrl+c.Req.RequestURI), 0, setting.AppSubUrl+"/")
|
||||
c.Redirect(setting.AppSubUrl + "/login")
|
||||
c.Redirect(setting.AppSubUrl + "/")
|
||||
}
|
||||
|
||||
func notAuthorized(c *Context) {
|
||||
|
Loading…
Reference in New Issue
Block a user