diff options
author | David Lawrence <dkl@mozilla.com> | 2015-09-02 08:40:56 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-09-02 08:40:56 +0200 |
commit | 3d463f780fd2051751f276f71e27bb47e96dc2aa (patch) | |
tree | 26c7c6f2e745dc2ace396396ed03c7ef8c8f3b7e /Bugzilla/User.pm | |
parent | e1c42c8fcdf74f5a810aae1384808b635cdc51a4 (diff) | |
download | bugzilla-3d463f780fd2051751f276f71e27bb47e96dc2aa.tar.gz bugzilla-3d463f780fd2051751f276f71e27bb47e96dc2aa.tar.xz |
Bug 1196618 - add support for group owners
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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; |