mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
32ed680fc2
* Refactor team guardian to avoid to use bus * Fix lint * Fix lint
16 lines
340 B
Go
16 lines
340 B
Go
package teamguardian
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/models"
|
|
)
|
|
|
|
type TeamGuardian interface {
|
|
CanAdmin(ctx context.Context, orgId int64, teamId int64, user *models.SignedInUser) error
|
|
}
|
|
|
|
type Store interface {
|
|
GetTeamMembers(ctx context.Context, query models.GetTeamMembersQuery) ([]*models.TeamMemberDTO, error)
|
|
}
|