ContextHandler: Always initiate permission map on signed in user (#64541)

This commit is contained in:
Karl Persson 2023-03-09 18:08:56 +01:00 committed by GitHub
parent ed11c32c1d
commit 8ef2afda87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,