Auth: Implement requester interface in access control module (#74289)

* Implement requester interface in the access control module
This commit is contained in:
linoman
2023-09-06 11:16:10 +02:00
committed by GitHub
parent 9310bb632e
commit 13f4382214
22 changed files with 179 additions and 114 deletions
+2 -2
View File
@@ -111,9 +111,9 @@ func RequestWithWebContext(req *http.Request, c *contextmodel.ReqContext) *http.
return req
}
func RequestWithSignedInUser(req *http.Request, user *user.SignedInUser) *http.Request {
func RequestWithSignedInUser(req *http.Request, usr *user.SignedInUser) *http.Request {
return RequestWithWebContext(req, &contextmodel.ReqContext{
SignedInUser: user,
SignedInUser: usr,
IsSignedIn: true,
})
}