Do not show create org link when allow_org_create is set to false, Fixes #2135

This commit is contained in:
Torkel Ödegaard
2015-06-11 08:16:09 +02:00
parent b39f8fb4de
commit 5962bcbc6c
4 changed files with 9 additions and 8 deletions
-2
View File
@@ -79,7 +79,6 @@ var (
AllowUserOrgCreate bool
AutoAssignOrg bool
AutoAssignOrgRole string
ViewerRoleMode string
// Http auth
AdminUser string
@@ -386,7 +385,6 @@ func NewConfigContext(args *CommandLineArgs) {
AllowUserOrgCreate = users.Key("allow_org_create").MustBool(true)
AutoAssignOrg = users.Key("auto_assign_org").MustBool(true)
AutoAssignOrgRole = users.Key("auto_assign_org_role").In("Editor", []string{"Editor", "Admin", "Viewer"})
ViewerRoleMode = users.Key("viewer_role_mode").In("default", []string{"default", "strinct"})
// anonymous access
AnonymousEnabled = Cfg.Section("auth.anonymous").Key("enabled").MustBool(false)