diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-03-15 04:03:49 +0100 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-03-15 04:04:24 +0100 |
commit | d48aacae6059b53ff1162fc1290231308be3c497 (patch) | |
tree | 07e81b2f87a1f17873237dbf2cf189c5bb409761 /extensions | |
parent | c55400fb5fdef96433e11b492e57a4723892d91a (diff) | |
download | bugzilla-d48aacae6059b53ff1162fc1290231308be3c497.tar.gz bugzilla-d48aacae6059b53ff1162fc1290231308be3c497.tar.xz |
Bug 1229834 - extend information we [audit] log to the syslog
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/SecureMail/Extension.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/extensions/SecureMail/Extension.pm b/extensions/SecureMail/Extension.pm index d3840357f..3b03f33a6 100644 --- a/extensions/SecureMail/Extension.pm +++ b/extensions/SecureMail/Extension.pm @@ -49,7 +49,7 @@ use constant SECURE_ALL => 2; ############################################################################## # Creating new columns # -# secure_mail boolean in the 'groups' table - whether to send secure mail +# secure_mail boolean in the 'gselect id from groups where secure_mailroups' table - whether to send secure mail # public_key text in the 'profiles' table - stores public key ############################################################################## sub install_update_db { @@ -68,10 +68,15 @@ sub install_update_db { BEGIN { *Bugzilla::Group::secure_mail = \&_group_secure_mail; *Bugzilla::User::public_key = \&_user_public_key; + *Bugzilla::securemail_groups = \&_securemail_groups; } sub _group_secure_mail { return $_[0]->{'secure_mail'}; } +sub _securemail_groups { + return Bugzilla->dbh->selectcol_arrayref("SELECT name FROM groups WHERE secure_mail = 1") // []; +} + # We want to lazy-load the public_key. sub _user_public_key { my $self = shift; |