From 3c07d03c0388d3b86138572401281b51f2db9282 Mon Sep 17 00:00:00 2001 From: David Svantesson Date: Fri, 17 Jan 2020 08:34:37 +0100 Subject: Add setting to set default and global disabled repository units. (#8788) * Add possibility to global disable repo units. * Add Default Repo Unit app.ini setting. * Hide units * Hide disabled repo units * Minor fixes * Indicate disabled units in team settings. Co-authored-by: Lauris BH Co-authored-by: Lunny Xiao Co-authored-by: zeripath --- modules/setting/repository.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/setting/repository.go b/modules/setting/repository.go index 06797e891b..807b29b2d8 100644 --- a/modules/setting/repository.go +++ b/modules/setting/repository.go @@ -37,6 +37,8 @@ var ( DefaultCloseIssuesViaCommitsInAnyBranch bool EnablePushCreateUser bool EnablePushCreateOrg bool + DisabledRepoUnits []string + DefaultRepoUnits []string // Repository editor settings Editor struct { @@ -98,6 +100,8 @@ var ( DefaultCloseIssuesViaCommitsInAnyBranch: false, EnablePushCreateUser: false, EnablePushCreateOrg: false, + DisabledRepoUnits: []string{}, + DefaultRepoUnits: []string{}, // Repository editor settings Editor: struct { -- cgit v1.2.3