mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ContextHandler: Always initiate permission map on signed in user (#64541)
This commit is contained in:
parent
ed11c32c1d
commit
8ef2afda87
@ -122,8 +122,10 @@ func (h *ContextHandler) Middleware(next http.Handler) http.Handler {
|
||||
defer span.End()
|
||||
|
||||
reqContext := &contextmodel.ReqContext{
|
||||
Context: mContext,
|
||||
SignedInUser: &user.SignedInUser{},
|
||||
Context: mContext,
|
||||
SignedInUser: &user.SignedInUser{
|
||||
Permissions: map[int64]map[string][]string{},
|
||||
},
|
||||
IsSignedIn: false,
|
||||
AllowAnonymous: false,
|
||||
SkipCache: false,
|
||||
|
Loading…
Reference in New Issue
Block a user