LDAP: Use an interface instead of a bus to get group teams (#42165)
* Remove bus for GetTeams for LDAP * Fix lint
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package ldap
|
||||
|
||||
import "github.com/grafana/grafana/pkg/models"
|
||||
|
||||
type Groups interface {
|
||||
GetTeams(groups []string) ([]models.TeamOrgGroupDTO, error)
|
||||
}
|
||||
|
||||
type OSSGroups struct{}
|
||||
|
||||
func ProvideGroupsService() *OSSGroups {
|
||||
return &OSSGroups{}
|
||||
}
|
||||
|
||||
func (*OSSGroups) GetTeams(_ []string) ([]models.TeamOrgGroupDTO, error) {
|
||||
return nil, nil
|
||||
}
|
||||
Reference in New Issue
Block a user