mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Configurable signout menu activation (#7968)
This commit is contained in:
@@ -96,6 +96,7 @@ var (
|
||||
LoginHint string
|
||||
DefaultTheme string
|
||||
DisableLoginForm bool
|
||||
DisableSignoutMenu bool
|
||||
|
||||
// Http auth
|
||||
AdminUser string
|
||||
@@ -528,6 +529,7 @@ func NewConfigContext(args *CommandLineArgs) error {
|
||||
// auth
|
||||
auth := Cfg.Section("auth")
|
||||
DisableLoginForm = auth.Key("disable_login_form").MustBool(false)
|
||||
DisableSignoutMenu = auth.Key("disable_signout_menu").MustBool(false)
|
||||
|
||||
// anonymous access
|
||||
AnonymousEnabled = Cfg.Section("auth.anonymous").Key("enabled").MustBool(false)
|
||||
|
||||
Reference in New Issue
Block a user