mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 06:32:15 +08:00
Progres on move to sql from rethinkdb
This commit is contained in:
@ -9,7 +9,7 @@ import (
|
||||
"github.com/torkelo/grafana-pro/pkg/models"
|
||||
)
|
||||
|
||||
func authGetRequestAccountId(c *Context, sess session.Store) (int, error) {
|
||||
func authGetRequestAccountId(c *Context, sess session.Store) (int64, error) {
|
||||
accountId := sess.Get("accountId")
|
||||
|
||||
urlQuery := c.Req.URL.Query()
|
||||
@ -23,7 +23,7 @@ func authGetRequestAccountId(c *Context, sess session.Store) (int, error) {
|
||||
return -1, errors.New("Auth: session account id not found")
|
||||
}
|
||||
|
||||
return accountId.(int), nil
|
||||
return accountId.(int64), nil
|
||||
}
|
||||
|
||||
func authDenied(c *Context) {
|
||||
|
Reference in New Issue
Block a user