mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
K8s: Stats: Update requester (#98706)
This commit is contained in:
parent
429da7fd68
commit
2992fbf6ef
@ -462,13 +462,11 @@ func addToStats(base stats.UserStats, role org.RoleType, count int64) stats.User
|
|||||||
|
|
||||||
func getStatsRequester(orgId int64) *identity.StaticRequester {
|
func getStatsRequester(orgId int64) *identity.StaticRequester {
|
||||||
return &identity.StaticRequester{
|
return &identity.StaticRequester{
|
||||||
Type: claims.TypeServiceAccount,
|
Type: claims.TypeServiceAccount,
|
||||||
UserID: 1,
|
UserID: 1,
|
||||||
OrgID: orgId,
|
OrgID: orgId,
|
||||||
Name: "admin",
|
Name: "stats-requester",
|
||||||
Login: "admin",
|
Login: "stats-requester",
|
||||||
OrgRole: identity.RoleAdmin,
|
|
||||||
IsGrafanaAdmin: true,
|
|
||||||
Permissions: map[int64]map[string][]string{
|
Permissions: map[int64]map[string][]string{
|
||||||
orgId: {
|
orgId: {
|
||||||
"*": {"*"},
|
"*": {"*"},
|
||||||
|
Loading…
Reference in New Issue
Block a user