summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config/GroupSecurity.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-09-07 17:04:07 +0200
committerGitHub <noreply@github.com>2017-09-07 17:04:07 +0200
commit946e9116c2a2a4ccbc44f657827087bf44ba295a (patch)
treec110b20d0f189946915d737180f78e835c27e9b1 /Bugzilla/Config/GroupSecurity.pm
parent8feb55f32ccd688d2b51105f4d56985abf0baa93 (diff)
downloadbugzilla-946e9116c2a2a4ccbc44f657827087bf44ba295a.tar.gz
bugzilla-946e9116c2a2a4ccbc44f657827087bf44ba295a.tar.xz
Bug 1397747 - Move _get_all_group_names to Bugzilla::Config::Common::_get_all_group_names, and remove copy-pasted code
Diffstat (limited to 'Bugzilla/Config/GroupSecurity.pm')
-rw-r--r--Bugzilla/Config/GroupSecurity.pm18
1 files changed, 7 insertions, 11 deletions
diff --git a/Bugzilla/Config/GroupSecurity.pm b/Bugzilla/Config/GroupSecurity.pm
index c9d6421d3..68c852fe6 100644
--- a/Bugzilla/Config/GroupSecurity.pm
+++ b/Bugzilla/Config/GroupSecurity.pm
@@ -29,7 +29,7 @@ sub get_param_list {
{
name => 'chartgroup',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'editbugs',
checker => \&check_group
},
@@ -37,7 +37,7 @@ sub get_param_list {
{
name => 'insidergroup',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => '',
checker => \&check_group
},
@@ -45,7 +45,7 @@ sub get_param_list {
{
name => 'timetrackinggroup',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'editbugs',
checker => \&check_group
},
@@ -53,7 +53,7 @@ sub get_param_list {
{
name => 'querysharegroup',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'editbugs',
checker => \&check_group
},
@@ -61,7 +61,7 @@ sub get_param_list {
{
name => 'comment_taggers_group',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'editbugs',
checker => \&check_comment_taggers_group
},
@@ -69,7 +69,7 @@ sub get_param_list {
{
name => 'debug_group',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'admin',
checker => \&check_group
},
@@ -89,10 +89,6 @@ sub get_param_list {
return @param_list;
}
-sub _get_all_group_names {
- my @group_names = map { $_->name } Bugzilla::Group->get_all;
- unshift( @group_names, '' );
- return \@group_names;
-}
+
1;