TeamSync: Fix team syncing out of orgs mapped by auth method (#53257)

This commit is contained in:
Jo
2022-08-10 08:20:23 +00:00
committed by GitHub
parent bca8a5d153
commit 09c95bc31f
2 changed files with 5 additions and 3 deletions

View File

@ -3,7 +3,7 @@ package ldap
import "github.com/grafana/grafana/pkg/models"
type Groups interface {
GetTeams(groups []string) ([]models.TeamOrgGroupDTO, error)
GetTeams(groups []string, orgIDs []int64) ([]models.TeamOrgGroupDTO, error)
}
type OSSGroups struct{}
@ -12,6 +12,6 @@ func ProvideGroupsService() *OSSGroups {
return &OSSGroups{}
}
func (*OSSGroups) GetTeams(_ []string) ([]models.TeamOrgGroupDTO, error) {
func (*OSSGroups) GetTeams(_ []string, _ []int64) ([]models.TeamOrgGroupDTO, error) {
return nil, nil
}