switch to using featureEnabled for enterprise features (#41559)

* switch to using featureEnabled for enterprise features
This commit is contained in:
Dan Cech
2022-01-07 15:11:23 -05:00
committed by GitHub
parent 9eb82f9fff
commit 34f757ba5a
34 changed files with 109 additions and 148 deletions

View File

@@ -16,10 +16,6 @@ type OSSLicensingService struct {
HooksService *hooks.HooksService
}
func (*OSSLicensingService) HasLicense() bool {
return false
}
func (*OSSLicensingService) Expiry() int64 {
return 0
}
@@ -44,7 +40,11 @@ func (l *OSSLicensingService) LicenseURL(showAdminLicensingPage bool) string {
return "https://grafana.com/oss/grafana?utm_source=grafana_footer"
}
func (*OSSLicensingService) HasValidLicense() bool {
func (*OSSLicensingService) EnabledFeatures() map[string]bool {
return map[string]bool{}
}
func (*OSSLicensingService) FeatureEnabled(feature string) bool {
return false
}