Misc: Remove unused params and impossible logic (#83756)

* remove unused params and impossible logic

* remove unused param
This commit is contained in:
Jo
2024-03-01 12:08:00 +01:00
committed by GitHub
parent 11d341d2bb
commit 0aebb9ee39
6 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func (hs *HTTPServer) getUserUserProfile(c *contextmodel.ReqContext, userID int6
userProfile.IsGrafanaAdminExternallySynced = login.IsGrafanaAdminExternallySynced(hs.Cfg, oauthInfo, authInfo.AuthModule)
}
userProfile.AccessControl = hs.getAccessControlMetadata(c, c.SignedInUser.GetOrgID(), "global.users:id:", strconv.FormatInt(userID, 10))
userProfile.AccessControl = hs.getAccessControlMetadata(c, "global.users:id:", strconv.FormatInt(userID, 10))
userProfile.AvatarURL = dtos.GetGravatarUrl(hs.Cfg, userProfile.Email)
return response.JSON(http.StatusOK, userProfile)