switch to using featureEnabled for enterprise features (#41559)
* switch to using featureEnabled for enterprise features
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
package models
|
||||
|
||||
type Licensing interface {
|
||||
// HasValidLicense is true if a valid license exists
|
||||
HasValidLicense() bool
|
||||
|
||||
// HasLicense is true if there is a license provided
|
||||
HasLicense() bool
|
||||
|
||||
// Expiry returns the unix epoch timestamp when the license expires, or 0 if no valid license is provided
|
||||
Expiry() int64
|
||||
|
||||
@@ -19,6 +13,10 @@ type Licensing interface {
|
||||
LicenseURL(showAdminLicensingPage bool) string
|
||||
|
||||
StateInfo() string
|
||||
|
||||
EnabledFeatures() map[string]bool
|
||||
|
||||
FeatureEnabled(feature string) bool
|
||||
}
|
||||
|
||||
type LicenseEnvironment interface {
|
||||
|
||||
Reference in New Issue
Block a user