Skip to content

Commit

Permalink
refactor: update viper config key for Pro edition check
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Jul 10, 2024
1 parent e64ffb3 commit 1359643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/utils/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package utils
import "github.com/spf13/viper"

func IsPro() bool {
return viper.GetString("info.edition") == "global.edition.pro"
return viper.GetString("edition") == "global.edition.pro"
}

0 comments on commit 1359643

Please sign in to comment.