diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Group.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Group.pm b/Bugzilla/Group.pm index 69c3f51de..0f7771efe 100644 --- a/Bugzilla/Group.pm +++ b/Bugzilla/Group.pm @@ -71,6 +71,11 @@ sub is_active { return $_[0]->{'isactive'}; } #### Methods #### ############################### +sub is_active_bug_group { + my $self = shift; + return $self->is_active && $self->is_bug_group; +} + sub _rederive_regexp { my ($self) = @_; RederiveRegexp($self->user_regexp, $self->id); @@ -206,6 +211,7 @@ Bugzilla::Group - Bugzilla group class. my $description = $group->description; my $user_reg_exp = $group->user_reg_exp; my $is_active = $group->is_active; + my $is_active_bug_group = $group->is_active_bug_group; my $group_id = Bugzilla::Group::ValidateGroupName('admin', @users); my @groups = Bugzilla::Group->get_all; |