mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
FeatureToggles: Add context and and an explicit global check (#78081)
This commit is contained in:
@@ -59,7 +59,7 @@ func (s *Service) Base(n PluginInfo) (string, error) {
|
||||
func (s *Service) Module(n PluginInfo) (string, error) {
|
||||
if n.class == plugins.ClassCore {
|
||||
if s.cfg.Features != nil &&
|
||||
s.cfg.Features.IsEnabled(featuremgmt.FlagExternalCorePlugins) &&
|
||||
s.cfg.Features.IsEnabledGlobally(featuremgmt.FlagExternalCorePlugins) &&
|
||||
filepath.Base(n.dir) == "dist" {
|
||||
// The core plugin has been built externally, use the module from the dist folder
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user