mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
to revert: fix dependency cycle
This commit is contained in:
parent
3d0658f707
commit
1ffbee73ec
@ -15,11 +15,11 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
func ProvideService(features featuremgmt.FeatureToggles, usageStats usagestats.Service,
|
||||
func ProvideService(features featuremgmt.FeatureToggles,
|
||||
provider accesscontrol.PermissionsProvider, routeRegister routing.RouteRegister) (*OSSAccessControlService, error) {
|
||||
var errDeclareRoles error
|
||||
s := ProvideOSSAccessControl(features, provider)
|
||||
s.registerUsageMetrics(usageStats)
|
||||
//s.registerUsageMetrics(usageStats)
|
||||
if !s.IsDisabled() {
|
||||
api := api.AccessControlAPI{
|
||||
RouteRegister: routeRegister,
|
||||
|
Loading…
Reference in New Issue
Block a user