diff options
author | Byron Jones <glob@mozilla.com> | 2015-07-23 06:24:32 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-07-23 06:24:32 +0200 |
commit | e497100c07aa95e315c4c881d54cb88e57675e80 (patch) | |
tree | 4a1ac7448dfc1e0c7a5d8dc7352b7f5931eec36f /Bugzilla/Bug.pm | |
parent | 5f8b7d80c6d390d6eb135f8d8bb9f8662524a24b (diff) | |
download | bugzilla-e497100c07aa95e315c4c881d54cb88e57675e80.tar.gz bugzilla-e497100c07aa95e315c4c881d54cb88e57675e80.tar.xz |
Bug 1185823 - add additional [audit] syslog entries
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 042f9c801..76b845f71 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1028,6 +1028,12 @@ sub update { my @added_names = map { $new_groups{$_}->name } @$added_gr; $changes->{'bug_group'} = [join(', ', @removed_names), join(', ', @added_names)]; + + # we only audit when bugs protected with a secure-mail enabled group + # are made public + if (!scalar @{ $self->groups_in } && any { $old_groups{$_}->secure_mail } @$removed_gr) { + Bugzilla->audit(sprintf('%s made Bug %s public (%s)', $user->login, $self->id, $self->short_desc)); + } } # Comments and comment tags |