From 3d463f780fd2051751f276f71e27bb47e96dc2aa Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 2 Sep 2015 14:40:56 +0800 Subject: Bug 1196618 - add support for group owners --- Bugzilla/User.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla/User.pm') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index d3bb807b3..311b89098 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1051,6 +1051,11 @@ sub groups_in_sql { return Bugzilla->dbh->sql_in($field, $ids); } +sub groups_owned { + my $self = shift; + return $self->{groups_owned} //= Bugzilla::Group->match({ owner_user_id => $self->id }); +} + sub bless_groups { my $self = shift; -- cgit v1.2.3-24-g4f1b