mirror of
				https://github.com/grafana/grafana.git
				synced 2025-02-25 18:55:37 -06:00 
			
		
		
		
	Work on making grafana work in sub url
This commit is contained in:
		@@ -9,6 +9,7 @@ import (
 | 
			
		||||
 | 
			
		||||
	"github.com/torkelo/grafana-pro/pkg/bus"
 | 
			
		||||
	m "github.com/torkelo/grafana-pro/pkg/models"
 | 
			
		||||
	"github.com/torkelo/grafana-pro/pkg/setting"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func authGetRequestAccountId(c *Context, sess session.Store) (int64, error) {
 | 
			
		||||
@@ -29,7 +30,7 @@ func authGetRequestAccountId(c *Context, sess session.Store) (int64, error) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func authDenied(c *Context) {
 | 
			
		||||
	c.Redirect("/login")
 | 
			
		||||
	c.Redirect(setting.AppSubUrl + "/login")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Auth() macaron.Handler {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user