mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 13:22:28 +08:00
Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface (#76113)
Unfurl OrgID in pkg/services to allow using identity.Requester interface
This commit is contained in:
@ -118,7 +118,7 @@ func Auth(options *AuthOptions) web.Handler {
|
||||
if !forceLogin {
|
||||
orgIDValue := c.Req.URL.Query().Get("orgId")
|
||||
orgID, err := strconv.ParseInt(orgIDValue, 10, 64)
|
||||
if err == nil && orgID > 0 && orgID != c.OrgID {
|
||||
if err == nil && orgID > 0 && orgID != c.SignedInUser.GetOrgID() {
|
||||
forceLogin = true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user