Chore: Port user services to identity.Requester (#73851)

* port api key api to signedinuser

* port users to signed in user interface

* fix tests
This commit is contained in:
Jo
2023-08-28 10:42:24 +02:00
committed by GitHub
parent 01d98114b9
commit 5eed495cce
11 changed files with 192 additions and 72 deletions

View File

@@ -4,9 +4,9 @@ import (
"errors"
"time"
"github.com/grafana/grafana/pkg/services/auth/identity"
"github.com/grafana/grafana/pkg/services/org"
"github.com/grafana/grafana/pkg/services/quota"
"github.com/grafana/grafana/pkg/services/user"
)
var (
@@ -50,7 +50,7 @@ type DeleteCommand struct {
type GetApiKeysQuery struct {
OrgID int64
IncludeExpired bool
User *user.SignedInUser
User identity.Requester
}
type GetByNameQuery struct {
KeyName string