mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 10:17:05 +08:00
TeamSync: Fix team syncing out of orgs mapped by auth method (#53257)
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user