Skip to content

Commit cb04c59

Browse files
committed
fix: check platform fields in IsProFeatureEnabled
1 parent c2f8c9c commit cb04c59

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

config/config.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,22 @@ func (c *Config) IsProFeatureEnabled() bool {
10631063
return true
10641064
}
10651065

1066+
if c.Sleep != nil {
1067+
return true
1068+
}
1069+
1070+
if c.Snapshots != nil {
1071+
return true
1072+
}
1073+
1074+
if c.Deletion != nil {
1075+
return true
1076+
}
1077+
1078+
if c.Platform != nil {
1079+
return true
1080+
}
1081+
10661082
return false
10671083
}
10681084

0 commit comments

Comments
 (0)