diff options
Diffstat (limited to 'Bugzilla/Config/Common.pm')
-rw-r--r-- | Bugzilla/Config/Common.pm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm index 3e6e22a57..416a87849 100644 --- a/Bugzilla/Config/Common.pm +++ b/Bugzilla/Config/Common.pm @@ -38,10 +38,11 @@ use Socket; use Bugzilla::Util; use Bugzilla::Constants; use Bugzilla::Field; +use Bugzilla::Group; use base qw(Exporter); @Bugzilla::Config::Common::EXPORT = - qw(check_multi check_numeric check_regexp check_url + qw(check_multi check_numeric check_regexp check_url check_group check_sslbase check_priority check_severity check_platform check_opsys check_shadowdb check_urlbase check_webdotbase check_netmask check_user_verify_class check_image_converter @@ -151,6 +152,15 @@ sub check_opsys { return ""; } +sub check_group { + my $group_name = shift; + my $group = new Bugzilla::Group({'name' => $group_name}); + unless (defined $group) { + return "Must be an existing group name"; + } + return ""; +} + sub check_shadowdb { my ($value) = (@_); $value = trim($value); |