mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
18 lines
350 B
Go
18 lines
350 B
Go
package manager
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/models"
|
|
"github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
type TeamGuardianMock struct {
|
|
mock.Mock
|
|
}
|
|
|
|
func (t *TeamGuardianMock) CanAdmin(ctx context.Context, orgId int64, teamId int64, user *models.SignedInUser) error {
|
|
args := t.Called(ctx, orgId, teamId, user)
|
|
return args.Error(0)
|
|
}
|