Auth: Move Org service to SignedInUser interface (#72720)

add identity interface for org service
This commit is contained in:
Jo
2023-08-03 11:02:38 +02:00
committed by GitHub
parent 1e8879a041
commit 2ef334def7
2 changed files with 8 additions and 7 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ import (
"time"
"github.com/grafana/grafana/pkg/models/roletype"
"github.com/grafana/grafana/pkg/services/user"
"github.com/grafana/grafana/pkg/services/auth/identity"
"github.com/grafana/grafana/pkg/util/errutil"
)
@@ -174,7 +174,7 @@ type GetOrgUsersQuery struct {
// Flag used to allow oss edition to query users without access control
DontEnforceAccessControl bool
User *user.SignedInUser
User identity.Requester
}
type SearchOrgUsersQuery struct {
@@ -186,7 +186,7 @@ type SearchOrgUsersQuery struct {
// Flag used to allow oss edition to query users without access control
DontEnforceAccessControl bool
User *user.SignedInUser
User identity.Requester
}
type SearchOrgUsersQueryResult struct {