Commit e53315dc by Dan Cech

cleanup

parent a1b1d2fe
......@@ -117,8 +117,8 @@ func updateUser(user *m.User, extUser *m.ExternalUserInfo) error {
}
func syncOrgRoles(user *m.User, extUser *m.ExternalUserInfo) error {
// don't sync org roles if none are specified
if len(extUser.OrgRoles) == 0 {
// log.Warn("No group mappings defined")
return nil
}
......
......@@ -68,6 +68,7 @@ func initContextWithAuthProxy(ctx *m.ReqContext, orgID int64) bool {
extUser.Login = proxyHeaderValue
} else {
ctx.Handle(500, "Auth proxy header property invalid", nil)
return true
}
// add/update user in grafana
......
......@@ -15,7 +15,7 @@ func init() {
}
func GetUserByAuthInfo(query *m.GetUserByAuthInfoQuery) error {
user := new(m.User)
user := &m.User{}
has := false
var err error
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment