mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Auth: Write the redirect cookie if denied - do not write a blank redirect (#57381)
* Write the redirect cookie if denied - do not write a blank redirect * Remove redundant code, reverse polarity
This commit is contained in:
@@ -84,6 +84,7 @@ func deny(c *models.ReqContext, evaluator Evaluator, err error) {
|
||||
|
||||
if !c.IsApiRequest() {
|
||||
// TODO(emil): I'd like to show a message after this redirect, not sure how that can be done?
|
||||
writeRedirectCookie(c)
|
||||
c.Redirect(setting.AppSubUrl + "/")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user