summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2019-08-24 09:28:59 -0300
committerLauris BH <lauris@nix.lv>2019-08-24 15:28:59 +0300
commite3115cc019211fa2549f6943d379bf58fe7b7d7d (patch)
tree050115e3cdf4e0334d081459312f711e55f4ea86 /modules/setting
parentf83db078f0603c775cd1b1bb016f996b65a04835 (diff)
downloadgitea-e3115cc019211fa2549f6943d379bf58fe7b7d7d.tar.gz
gitea-e3115cc019211fa2549f6943d379bf58fe7b7d7d.zip
Add support for DEFAULT_ORG_MEMBER_VISIBLE (#7669)
* Add support for DEFAULT_ORG_MEMBER_VISIBLE * Correct formatting * Improved description in cheat sheet. * Add test for DefaultOrgMemberVisible * Remove dead code
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/service.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/service.go b/modules/setting/service.go
index 97babc5aaf..905b1326f7 100644
--- a/modules/setting/service.go
+++ b/modules/setting/service.go
@@ -42,6 +42,7 @@ var Service struct {
NoReplyAddress string
EnableUserHeatmap bool
AutoWatchNewRepos bool
+ DefaultOrgMemberVisible bool
// OpenID settings
EnableOpenIDSignIn bool
@@ -82,6 +83,7 @@ func newService() {
Service.AutoWatchNewRepos = sec.Key("AUTO_WATCH_NEW_REPOS").MustBool(true)
Service.DefaultOrgVisibility = sec.Key("DEFAULT_ORG_VISIBILITY").In("public", structs.ExtractKeysFromMapString(structs.VisibilityModes))
Service.DefaultOrgVisibilityMode = structs.VisibilityModes[Service.DefaultOrgVisibility]
+ Service.DefaultOrgMemberVisible = sec.Key("DEFAULT_ORG_MEMBER_VISIBLE").MustBool()
sec = Cfg.Section("openid")
Service.EnableOpenIDSignIn = sec.Key("ENABLE_OPENID_SIGNIN").MustBool(!InstallLock)